CustomStatistic.tsx 426 B

1234567891011121314
  1. import type { ReactNode } from 'react';
  2. import { Statistic } from 'antd';
  3. import './CustomStatistic.css';
  4. interface CustomStatisticProps {
  5. title?: string;
  6. value?: string | number;
  7. prefix?: ReactNode;
  8. suffix?: ReactNode;
  9. }
  10. export default function CustomStatistic({ title = '', value = '', prefix, suffix }: CustomStatisticProps) {
  11. return <Statistic title={title} value={value} prefix={prefix} suffix={suffix} />;
  12. }