mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-07 05:34:17 +00:00
15 lines
426 B
TypeScript
15 lines
426 B
TypeScript
|
|
import type { ReactNode } from 'react';
|
||
|
|
import { Statistic } from 'antd';
|
||
|
|
import './CustomStatistic.css';
|
||
|
|
|
||
|
|
interface CustomStatisticProps {
|
||
|
|
title?: string;
|
||
|
|
value?: string | number;
|
||
|
|
prefix?: ReactNode;
|
||
|
|
suffix?: ReactNode;
|
||
|
|
}
|
||
|
|
|
||
|
|
export default function CustomStatistic({ title = '', value = '', prefix, suffix }: CustomStatisticProps) {
|
||
|
|
return <Statistic title={title} value={value} prefix={prefix} suffix={suffix} />;
|
||
|
|
}
|