Untitled

 avatar
unknown
jsx
2 years ago
475 B
5
Indexable
const MiniStat = forwardRef<HTMLDivElement, unknown>(({ icon, children, color, id }: { icon: typeof Percent, children: ReactNode, color: string, id?: string }, ref) => {

    const IconComponent = icon

    return (
        <div className="mini-stat" ref={ ref }>
            <div className="icon-holder">
                <IconComponent size="16" strokeWidth="3" color={ color } />
            </div>
            { children }
        </div>

    )
})

export default MiniStat
Editor is loading...