ConceptPortal-public/rsconcept/frontend/src/components/ui/ValueStats.tsx
Ivan c1f50d6f50
Some checks are pending
Frontend CI / build (22.x) (push) Waiting to run
D: Improve TSDocs for frontend components
2024-11-21 15:09:51 +03:00

25 lines
585 B
TypeScript

import { PARAMETER } from '@/utils/constants';
import { CProps } from '../props';
import ValueIcon from './ValueIcon';
interface ValueStatsProps extends CProps.Styling, CProps.Titled {
/** Id of the component. */
id: string;
/** Icon to display. */
icon: React.ReactNode;
/** Value to display. */
value: string | number;
}
/**
* Displays statistics value with an icon.
*/
function ValueStats(props: ValueStatsProps) {
return <ValueIcon dense smallThreshold={PARAMETER.statSmallThreshold} textClassName='min-w-[1.4rem]' {...props} />;
}
export default ValueStats;