import type DynamicDateRange from "../DynamicDateRange.js"; import Calendar from "../Calendar.js"; import CalendarDate from "../CalendarDate.js"; import SegmentedButton from "../SegmentedButton.js"; import SegmentedButtonItem from "../SegmentedButtonItem.js"; import TimeSelectionClocks from "../TimeSelectionClocks.js"; import type FromDateTimeOption from "./FromDateTime.js"; export default function FromDateTime(this: DynamicDateRange) { const currentOption = this._currentOption as FromDateTimeOption; const currentValue = this.value?.values ? this.value.values[0] as Date : undefined; return (
{currentOption.btnDateLabel} {currentOption.btnTimeLabel}
{!!currentOption.showDateView && } {!!currentOption.showTimeView && }
); }