import React from 'react'; import { Box } from './primitives/Box'; import { Text } from './Text'; import { Surface } from './primitives/Surface'; import { Icon } from './Icon'; import { LucideIcon } from 'lucide-react'; interface SummaryItemProps { label?: string; value?: string | number; icon?: LucideIcon; onClick?: () => void; title?: string; subtitle?: string; rightContent?: React.ReactNode; } export function SummaryItem({ label, value, icon, onClick, title, subtitle, rightContent }: SummaryItemProps) { return ( {icon && ( )} {(label || title) && ( {label || title} )} {(value || subtitle) && ( {value || subtitle} )} {rightContent && ( {rightContent} )} ); }