mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 22:27:16 +01:00
Updated reports.
This commit is contained in:
parent
28e872f219
commit
01bd21c5b4
75 changed files with 1373 additions and 980 deletions
|
|
@ -1,19 +1,28 @@
|
|||
import { ReactNode } from 'react';
|
||||
import { Icon, Text, Column } from '@umami/react-zen';
|
||||
import { Logo } from '@/components/icons';
|
||||
|
||||
export interface EmptyPlaceholderProps {
|
||||
message?: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
icon?: ReactNode;
|
||||
children?: ReactNode;
|
||||
}
|
||||
|
||||
export function EmptyPlaceholder({ message, icon, children }: EmptyPlaceholderProps) {
|
||||
export function EmptyPlaceholder({ title, description, icon, children }: EmptyPlaceholderProps) {
|
||||
return (
|
||||
<Column alignItems="center" justifyContent="center" gap="5" height="100%" width="100%">
|
||||
<Icon size="xl">{icon || <Logo />}</Icon>
|
||||
<Text>{message}</Text>
|
||||
<div>{children}</div>
|
||||
{icon && (
|
||||
<Icon color="10" size="xl">
|
||||
{icon}
|
||||
</Icon>
|
||||
)}
|
||||
{title && (
|
||||
<Text weight="bold" size="4">
|
||||
{title}
|
||||
</Text>
|
||||
)}
|
||||
{description && <Text color="muted">{description}</Text>}
|
||||
{children}
|
||||
</Column>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue