scoresaber-reloaded-v2/src/components/Error.tsx
Liam 59fbad3b7c
All checks were successful
deploy / deploy (push) Successful in 58s
cleanup player page and update error page
2023-10-22 03:34:10 +01:00

25 lines
613 B
TypeScript

import Image from "next/image";
type ErrorProps = {
errorMessage?: string;
};
export default function Error({ errorMessage }: ErrorProps) {
return (
<div role="status">
<div className="flex flex-col items-center justify-center gap-4">
<p className="text-2xl font-bold text-red-500">Something went wrong!</p>
<p className="text-xl text-gray-400">{errorMessage}</p>
<Image
alt="Sad cat"
src={"https://cdn.fascinated.cc/BxI9iJI9.jpg"}
width={200}
height={200}
className="rounded-xl"
/>
</div>
</div>
);
}