"use client";

export default function Error({ error, reset }: { error: Error; reset: () => void }) {
  return (
    <div className="h-screen flex flex-col items-center justify-center">
      <h1 className="text-2xl font-semibold text-red-500">Something went wrong!</h1>
      <p className="text-gray-500">{error.message}</p>
      <button className="mt-4 px-4 py-2 bg-blue-600 text-white rounded" onClick={() => reset()}>
        Try Again
      </button>
    </div>
  );
}