import { cn } from '@repo/ui/lib/utils'; import { formatTime } from '@repo/utils/datetime-format'; type TimeRangeProps = { readonly className?: string; readonly timeEnd: null | string | undefined; readonly timeStart: null | string | undefined; }; export function ReadonlyTimeRange({ className, timeEnd, timeStart }: Readonly) { return (
{timeStart ? formatTime(timeStart).user() : 'xx:xx'} {' - '} {timeEnd ? formatTime(timeEnd).user() : 'xx:xx'}
); }