--- import Icon from './Icon.astro' interface Props { value?: number unit?: string class?: string } const { value = 25, unit = '%', class: className } = Astro.props const trendingColor = value > 0 ? 'green' : value === 0 ? 'muted' : 'red' const trendingIcon = value > 0 ? 'arrow-up' : value === 0 ? 'minus' : 'arrow-down' const classes = [`text-${trendingColor} d-inline-flex align-items-center lh-1`, className] --- {value > 0 ? 'Increased by' : value < 0 ? 'Decreased by' : 'No change,'} {value}{unit}