Files
probo/packages/ui/src/Layouts/ErrorLayout.tsx
Jonathan a2d1310780 Migrate to vite & new structure
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
2025-06-13 13:23:39 -07:00

19 lines
600 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>
);
}