diff --git a/packages/ui/http-error.tsx b/packages/ui/http-error.tsx new file mode 100644 index 0000000..2674b08 --- /dev/null +++ b/packages/ui/http-error.tsx @@ -0,0 +1,21 @@ +type Props = { + readonly code: string; + readonly description: string; + readonly title: string; +}; + +export function HttpError({ code, description, title }: Props) { + return ( +
+
+
+

+ {code} +

+

{title}

+

{description}

+
+
+
+ ); +} diff --git a/packages/ui/index.tsx b/packages/ui/index.tsx index 757d1e0..1d691d8 100644 --- a/packages/ui/index.tsx +++ b/packages/ui/index.tsx @@ -8,4 +8,5 @@ export * from './content'; export * from './divider'; export * from './header'; export * from './heading'; +export * from './http-error'; export * from './input';