NORY-22: create error component

This commit is contained in:
Markus Thielker 2024-12-08 17:26:11 +01:00
parent 436e5c8765
commit 7299a8e206
No known key found for this signature in database

View file

@ -0,0 +1,13 @@
interface ErrorDisplayProps {
title: string;
message: string;
}
export async function ErrorDisplay({ title, message }: ErrorDisplayProps) {
return (
<div className="space-y-4">
<p className="text-3xl font-bold leading-tight tracking-tight">{title}</p>
<p className="text-lg font-light">{message}</p>
</div>
);
}