import React, { FC } from 'react'; interface Props { title: string; value: number | string; description: string; colorHex: string; subtitle?: string; } const MetricCard: FC = ({ title, value, description, colorHex, subtitle }) => (

{title}

{subtitle &&

{subtitle}

}
{typeof value === 'number' ? value.toFixed(3) : value}

{description}

); export default MetricCard;