'use client'; import { Button } from '@repo/shadcn/button'; import { RotateCw } from '@repo/shadcn/icon'; import { cn } from '@repo/shadcn/lib/utils'; import { useRouter } from 'next/navigation'; import { useEffect, useTransition } from 'react'; const Error = ({ error, reset }: { error: Error; reset: () => void }) => { const router = useRouter(); const [isPending, startTransition] = useTransition(); useEffect(() => { // Log the error to an error reporting service console.error(error); }, [error]); return (

Oh no, something went wrong... maybe refresh?

); }; export default Error;