import React from 'react' import { Badge, Skeleton } from '@chakra-ui/react' export interface UnreadBadgeProps { isLoading?: boolean unreadCount?: number } export const UnreadBadge: React.FC = ({ isLoading, unreadCount }) => { if (isLoading) { return ( 99 ) } if (!unreadCount) { return null } return ( {unreadCount} ) }