mirror of
https://github.com/diced/zipline.git
synced 2026-06-30 17:46:35 -07:00
29 lines
481 B
TypeScript
29 lines
481 B
TypeScript
import { Group, Stack, Text, Title } from '@mantine/core';
|
|
import { Icon } from '@tabler/icons-react';
|
|
|
|
export default function FileStat({
|
|
Icon,
|
|
title,
|
|
value,
|
|
}: {
|
|
Icon: Icon;
|
|
title: string;
|
|
value: string | number;
|
|
}) {
|
|
return (
|
|
<Group>
|
|
<Icon size='2rem' />
|
|
|
|
<Stack gap={1}>
|
|
<Title order={5} fw={700}>
|
|
{title}
|
|
</Title>
|
|
|
|
<Text size='sm' c='dimmed'>
|
|
{value}
|
|
</Text>
|
|
</Stack>
|
|
</Group>
|
|
);
|
|
}
|