"use client"

import { EmptyState } from "@/shared/components/ui/empty-state"
import { AlertTriangle } from "lucide-react"

export default function ParentError({
  error,
  reset,
}: {
  error: Error & { digest?: string }
  reset: () => void
}) {
  return (
    <div className="p-6 md:p-8">
      <EmptyState
        icon={AlertTriangle}
        title="Something went wrong"
        description={error.message || "An unexpected error occurred. Please try again."}
        action={{ label: "Try again", onClick: reset }}
      />
    </div>
  )
}
