import React from "react"; import type { Control, FieldValues } from "react-hook-form"; import { ScheduleComponent, type FieldPathByValue, type ScheduleLabelsType, } from "@calcom/features/schedules/components/ScheduleComponent"; import useMeQuery from "@calcom/trpc/react/hooks/useMeQuery"; import type { TimeRange } from "@calcom/types/schedule"; const Schedule = < TFieldValues extends FieldValues, TPath extends FieldPathByValue, >(props: { name: TPath; control: Control; weekStart?: number; disabled?: boolean; labels?: ScheduleLabelsType; userTimeFormat?: number | null; }) => { const query = useMeQuery(); const { timeFormat } = query.data || { timeFormat: null }; return ; }; export default Schedule;