Files
Frontend/src/app/components/error-card.tsx

18 lines
380 B
TypeScript
Raw Normal View History

2024-04-18 03:51:41 +01:00
import { ReactElement } from "react";
2024-04-17 17:21:15 +01:00
import { Card } from "./card";
type ErrorProps = {
message: string;
};
2024-04-18 03:51:41 +01:00
export function ErrorCard({ message }: ErrorProps): ReactElement {
2024-04-17 17:21:15 +01:00
return (
<Card>
<div className="flex flex-col justify-center text-center">
<h1 className="text-xl text-red-400">Error</h1>
<p>{message}</p>
</div>
</Card>
);
}