import React from 'react'; import { Box } from '@chakra-ui/react'; const Badge = ({ children, isDot = false, max = 99, count = 0 }: { children: React.ReactNode; isDot?: boolean; max?: number; count?: number; }) => { return ( {children} {count > 0 && ( {isDot ? ( ) : ( {count > max ? `${max}+` : count} )} )} ); }; export default Badge;