export interface DeltaProps { /** The signed change, already formatted: "0.48%", "12". */ value: string; direction: 'up' | 'down'; /** `dark` picks the on-slab ladder; the mint does not exist on paper. */ surface?: 'paper' | 'dark'; className?: string; } export function Delta({ value, direction, surface = 'paper', className }: DeltaProps) { return ( {value} {direction === 'up' ? 'up' : 'down'} ); }