Files
probo/packages/ui/src/Layouts/ErrorLayout.tsx
Émile Ré aa5696b5d3 Add eslint-plugin-import
Signed-off-by: Émile Ré <emile@getprobo.com>
2026-01-22 19:57:10 +04:00

20 lines
561 B
TypeScript

import type { PropsWithChildren } from "react";
import { IconCircleInfo } from "../Atoms/Icons";
type Props = PropsWithChildren<{
title?: string;
description?: string;
}>;
export function ErrorLayout({ title, description, children }: Props) {
return (
<div className="min-h-screen w-full gap-2 flex flex-col items-center justify-center">
<IconCircleInfo className="text-txt-danger" size={40} />
<h1 className="text-4xl font-bold">{title}</h1>
<p className="text-txt-secondary">{description}</p>
{children}
</div>
);
}