mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 06:07:17 +01:00
22 lines
580 B
TypeScript
22 lines
580 B
TypeScript
import { ReactNode } from 'react';
|
|
import { Icon, Text, Flexbox } from 'react-basics';
|
|
import Logo from 'assets/logo.svg';
|
|
|
|
export interface EmptyPlaceholderProps {
|
|
message?: string;
|
|
children?: ReactNode;
|
|
}
|
|
|
|
export function EmptyPlaceholder({ message, children }: EmptyPlaceholderProps) {
|
|
return (
|
|
<Flexbox direction="column" alignItems="center" justifyContent="center" gap={60} height={600}>
|
|
<Icon size="xl">
|
|
<Logo />
|
|
</Icon>
|
|
<Text size="lg">{message}</Text>
|
|
<div>{children}</div>
|
|
</Flexbox>
|
|
);
|
|
}
|
|
|
|
export default EmptyPlaceholder;
|