'use client'; import Card from '@/components/card/Card'; import { Flex, Stat, StatLabel, StatNumber, useColorModeValue, Text, } from '@chakra-ui/react'; export default function Default(props: { startContent?: JSX.Element; endContent?: JSX.Element; name: string; growth?: string | number; value: string | number; }) { const { startContent, endContent, name, growth, value } = props; const textColor = useColorModeValue('#120F43', 'white'); const textColorSecondary = 'gray.500'; return ( {startContent} {name} {value} {growth ? ( {growth} since last month ) : null} {endContent} ); }