import { ArrowDown, ArrowUp } from 'lucide-react'; import * as React from 'react'; import { Card } from '../dashboard/components/Card'; import { cn, type Delta } from '../lib/utils'; export type DeltaTone = 'positive' | 'negative' | 'neutral'; interface Props { label: string; value: string; hint?: string; delta?: Delta; deltaLabel?: string; deltaTone?: DeltaTone; className?: string; } // Shared metric tile used by the Analytics page Summary strip and the // Content Explorer hero strip. Visual contract: !p-4 Card, 11px // uppercase label, 4xl semibold value, optional delta arrow + hint // underneath. `delta` and `deltaTone` are optional — when omitted the // tile renders exactly as the original `Summary.StatTile` so existing // callers stay pixel-identical. export function MetricTile( { label, value, hint, delta, deltaLabel, deltaTone = 'neutral', className, }: Props ) { const renderDelta = !! delta; const arrow = delta?.direction === 1 ?