import type { ReactNode } from 'react'; import { Box, Typography } from '@mui/material'; /** * Read-only caption + value used on every view screen (record pages): the caption in the primary blue at regular weight, the * value below it in the brand navy at regular weight, an empty value as a grey dash. One definition so all views match. */ export function ViewItem({ label, children, empty, preWrap }: { label: ReactNode; children?: ReactNode; empty?: boolean; preWrap?: boolean }) { const isEmpty = empty ?? (children === undefined || children === null || children === '' || children === false); return ( {label} {isEmpty ? '—' : children} ); }