import { LucideIcon } from 'lucide-react'; import { Box } from './Box'; import { Icon } from './Icon'; import { Surface } from './Surface'; import { Text } from './Text'; export interface SummaryItemProps { label?: string; value?: string | number; icon?: LucideIcon; intent?: 'primary' | 'success' | 'warning' | 'critical' | 'telemetry'; onClick?: () => void; title?: string; subtitle?: string; rightContent?: React.ReactNode; } export const SummaryItem = ({ label, value, icon, intent = 'primary', onClick, title, subtitle, rightContent }: SummaryItemProps) => { const finalTitle = title || label || ''; const finalValue = value || subtitle || ''; return ( {icon && ( )} {finalTitle} {finalValue} {rightContent} ); };