Portal/rsconcept/frontend/src/components/ui/ValueStats.tsx

17 lines
449 B
TypeScript
Raw Normal View History

2024-08-23 12:35:05 +03:00
import { PARAMETER } from '@/utils/constants';
import { CProps } from '../props';
import ValueIcon from './ValueIcon';
interface ValueStatsProps extends CProps.Styling, CProps.Titled {
id: string;
icon: React.ReactNode;
value: string | number;
}
function ValueStats(props: ValueStatsProps) {
return <ValueIcon dense smallThreshold={PARAMETER.statSmallThreshold} textClassName='min-w-[1.4rem]' {...props} />;
}
export default ValueStats;