import React, { CSSProperties, ReactNode } from 'react'; import { Box, Badge, toRem, Text } from 'folds'; import { millify } from '../../plugins/millify'; type UnreadBadgeProps = { highlight?: boolean; count: number; }; const styles: CSSProperties = { minWidth: toRem(16), }; export function UnreadBadgeCenter({ children }: { children: ReactNode }) { return ( {children} ); } export function UnreadBadge({ highlight, count }: UnreadBadgeProps) { return ( 0 ? '400' : '200'} fill="Solid" radii="Pill" outlined={false} > {count > 0 && ( {millify(count)} )} ); }