import Typography from "../typography/typography"; import { Icon } from "../icon"; export interface DirectionMetricProps { value: number; limit: number; } export function DirectionMetric({ value, limit }: DirectionMetricProps) { return (
{value !== limit && ( limit ? "arrow-up" : "arrow-down"} color={value > limit ? "success-500" : "error-700"} size={20} /> )} limit ? "success-700" : "error-700" } > {value}
); } export default DirectionMetric;