import React from 'react'; import Icon from 'soapbox/components/icon'; import { Counter } from 'soapbox/components/ui'; interface IIconWithCounter extends React.HTMLAttributes { count: number, icon?: string; src?: string; } const IconWithCounter: React.FC = ({ icon, count, ...rest }) => { return (
{count > 0 && ( )}
); }; export default IconWithCounter;