import { AlertTriangle } from 'lucide-react' import { Alert, AlertDescription, AlertTitle } from '~/components/ui/alert' import { Button } from '~/components/ui/button' type Props = { error: Error reset?: () => void } export function ErrorState({ error, reset }: Props) { return (
Something went wrong {error.message} {reset && ( )}
) }