import { Card, Statistic, Row, Col } from "antd"; import dayjs from "dayjs"; import { CurrentMonth } from "../../../types/Profile/TProfile"; type Props = { current: CurrentMonth; }; const InfoItem = ({ label, value, prefix, }: { label: string; value: number; prefix?: string; }) => (
{label}
); const CurrentMonthCard: React.FC = ({ current }) => { return ( {`Current month / ${dayjs().format("MMMM")}`} } value={current.salary} prefix="$" precision={2} valueStyle={{ fontFamily: "Inter", fontSize: "24px", fontWeight: 700, lineHeight: "28px", letterSpacing: "-0.96px", }} /> ); }; export default CurrentMonthCard;