Frontend/src/app/components/error-card.tsx
Liam 1e732e923f
Some checks failed
Deploy App / docker (ubuntu-latest) (push) Has been cancelled
use new api format
2024-04-17 17:21:15 +01:00

17 lines
341 B
TypeScript

import { Card } from "./card";
type ErrorProps = {
message: string;
};
export function ErrorCard({ message }: ErrorProps): JSX.Element {
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>
);
}