import { ReactNode } from 'react'; import { Box } from './Box'; import { Surface } from './Surface'; import { Text } from './Text'; interface SummaryItemProps { title: string; subtitle?: string; rightContent?: ReactNode; onClick?: () => void; } export function SummaryItem({ title, subtitle, rightContent, onClick, }: SummaryItemProps) { return ( {title} {subtitle && ( {subtitle} )} {rightContent && ( {rightContent} )} ); }