NORY-22: create error component
This commit is contained in:
parent
436e5c8765
commit
7299a8e206
1 changed files with 13 additions and 0 deletions
13
dashboard/src/components/error.tsx
Normal file
13
dashboard/src/components/error.tsx
Normal 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>
|
||||
);
|
||||
}
|
Loading…
Add table
Reference in a new issue