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