import { Typography, Statistic, Card, Col, Progress} from "antd"; const { Text } = Typography; interface ItemProps { title: string, value: string, prefix: JSX.Element, color: string, progress?: boolean, centered: boolean, }; export default function StatisticItem(props: ItemProps) { const { title, value, prefix } = props; const View = props.progress ? ProgressView : StatisticView; const style = props.centered ? {display: 'flex', alignItems: 'center', justifyContent: 'center'} : {}; return (