Untitled

mail@pastecode.io avatar
unknown
jsx
a year ago
475 B
2
Indexable
Never
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