mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
20 lines
555 B
TypeScript
20 lines
555 B
TypeScript
import { ReactNode } from 'react';
|
|
import { Icon, Text, Column } from '@umami/react-zen';
|
|
import { Icons } from '@/components/icons';
|
|
|
|
export interface EmptyPlaceholderProps {
|
|
message?: string;
|
|
children?: ReactNode;
|
|
}
|
|
|
|
export function EmptyPlaceholder({ message, children }: EmptyPlaceholderProps) {
|
|
return (
|
|
<Column alignItems="center" justifyContent="center" gap="5" height="100%" width="100%">
|
|
<Icon size="xl">
|
|
<Icons.Logo />
|
|
</Icon>
|
|
<Text size="lg">{message}</Text>
|
|
<div>{children}</div>
|
|
</Column>
|
|
);
|
|
}
|