src/features/reviews/appointment-picker.tsx
Linked repository file from this build.
"use client";
import { Input } from "@/components/ui/input";
/** Eastern wall-clock input. No browser timezone conversion is applied. */
export function AppointmentPicker({
value,
editable,
onChange,
}: {
value: string;
editable: boolean;
onChange(value: string): void;
}) {
return (
<Input
id="appointment"
type="datetime-local"
value={value}
readOnly={!editable}
onChange={(event) => onChange(event.target.value)}
/>
);
}