"use client"

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

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