import React from 'react' import { useCountUp } from '../../hooks/useCountUp' import { fs } from '../../components/shared/DialogShell' // One animated metric of the admin header: a raised tile with the icon, the // count and its label, sized to sit four in a row on the page's bar. export default function AdminStatCard({ label, value, icon: Icon }: { label: string; value: number; icon: React.ComponentType<{ className?: string; style?: React.CSSProperties }> }): React.ReactElement { const animated = useCountUp(value, 900) return (
{animated}
{label}