mirror of
https://github.com/owncast/owncast.git
synced 2024-11-23 13:24:33 +03:00
25 lines
No EOL
502 B
TypeScript
25 lines
No EOL
502 B
TypeScript
import { Statistic, Card, Col} from "antd";
|
|
|
|
interface ItemProps {
|
|
title: string,
|
|
value: string,
|
|
prefix: JSX.Element,
|
|
};
|
|
|
|
export default function StatisticItem(props: ItemProps) {
|
|
const { title, value, prefix } = props;
|
|
const valueStyle = { color: "#334", fontSize: "1.8rem" };
|
|
|
|
return (
|
|
<Col span={8}>
|
|
<Card>
|
|
<Statistic
|
|
title={title}
|
|
value={value}
|
|
valueStyle={valueStyle}
|
|
prefix={prefix}
|
|
/>
|
|
</Card>
|
|
</Col>
|
|
);
|
|
} |