import Typography, { TypographyProps, } from "@/components/ui/Typography/Typography"; import { cn } from "@/lib/utils"; interface JoinedTodayProps extends React.ComponentProps<"div"> { icon?: React.ReactNode; count?: TypographyProps<"span">; text?: TypographyProps<"p">; } export default function JoinedToday({ icon, count, text, ...props }: JoinedTodayProps) { return (
{icon} {count && ( )} {text && ( )}
); }