Files
umami/src/components/common/EmptyPlaceholder.tsx
T
2025-05-27 00:50:28 -07:00

21 lines
568 B
TypeScript

import { ReactNode } from 'react';
import { Icon, Text, Column } from '@umami/react-zen';
import { Logo } 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" fillColor="3" strokeColor="3">
<Logo />
</Icon>
<Text>{message}</Text>
<div>{children}</div>
</Column>
);
}