import { Box, Typography } from '@mui/material' import type { PropertyUnit } from '../../domain/property' export function floorLabel(u: PropertyUnit): string { if (u.floorLevel === 0) return 'EG' if (u.floorLevel < 0) return `UG${Math.abs(u.floorLevel)}` return `${u.floorLevel}.OG` } export function Field({ label, value }: { label: string; value?: string | number | boolean | null }) { return ( {label} {value !== undefined && value !== null && value !== '' ? ( {typeof value === 'boolean' ? (value ? 'Ja' : 'Nein') : String(value)} ) : ( )} ) } export function FieldGrid({ children }: { children: React.ReactNode }) { return ( {children} ) } export function SectionTitle({ title }: { title: string }) { return ( {title} ) }