error.tsx 705 B

12345678910111213141516171819
  1. "use client";
  2. export default function Error({ reset }: { reset: () => void }) {
  3. return (
  4. <div className="mx-auto my-4 flex max-w-xl flex-col rounded-lg border border-neutral-200 bg-white p-8 md:p-12 dark:border-neutral-800 dark:bg-black">
  5. <h2 className="text-xl font-bold">Oh no!</h2>
  6. <p className="my-2">
  7. There was an issue with our storefront. This could be a temporary issue,
  8. please try your action again.
  9. </p>
  10. <button
  11. className="mx-auto mt-4 flex w-full items-center justify-center rounded-full bg-blue-600 p-4 tracking-wide text-white hover:opacity-90"
  12. onClick={() => reset()}
  13. >
  14. Try Again
  15. </button>
  16. </div>
  17. );
  18. }