import type { FC } from 'react'; import React from 'react'; type CountProps = { count?: number, offset?: number, } const CountBadge: FC = (props:CountProps) => { const { count, offset = 0 } = props; return ( { count == null && } { count != null && count + offset } ); }; export default CountBadge;