mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
25 lines
585 B
TypeScript
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;
|