"use client"

import { AlertCircle } from "lucide-react"

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

export default function Error({ reset }: { error: Error & { digest?: string }; reset: () => void }) {
  return (
    <div className="flex h-full flex-col items-center justify-center space-y-4">
      <EmptyState
        icon={AlertCircle}
        title="Something went wrong!"
        description="We apologize for the inconvenience. An unexpected error occurred."
        action={{
          label: "Try Again",
          onClick: () => reset()
        }}
        className="border-none shadow-none h-auto"
      />
    </div>
  )
}
