website refactor
This commit is contained in:
@@ -5,17 +5,19 @@ export interface HorizontalStatItemProps {
|
||||
label: string;
|
||||
value: string | number;
|
||||
intent?: 'primary' | 'success' | 'warning' | 'critical' | 'high' | 'med' | 'low';
|
||||
color?: string;
|
||||
}
|
||||
|
||||
export const HorizontalStatItem = ({
|
||||
label,
|
||||
value,
|
||||
intent = 'high'
|
||||
intent = 'high',
|
||||
color
|
||||
}: HorizontalStatItemProps) => {
|
||||
return (
|
||||
<Box display="flex" alignItems="center" justifyContent="between" paddingY={2}>
|
||||
<Text size="sm" variant="low">{label}</Text>
|
||||
<Text weight="semibold" variant={intent}>{value}</Text>
|
||||
<Text weight="semibold" variant={color ? undefined : intent} style={color ? { color } : undefined}>{value}</Text>
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user