"use client";

import { useEffect } from "react";
import ReceiptErrorPage from "@/components/error/ReceiptErrorPage";

export default function Error({
  error,
  reset,
}: {
  error: Error & { digest?: string };
  reset: () => void;
}) {
  useEffect(() => {
    console.error(error);
  }, [error]);

  return <ReceiptErrorPage variant="error" homeHref="/" onRetry={reset} />;
}
