/** * Copyright (c) 2023-present Plane Software, Inc. and contributors * SPDX-License-Identifier: AGPL-3.0-only * See the LICENSE file for details. */ import { observer } from "mobx-react"; // plane imports import { CustomSearchSelect } from "@plane/ui"; import { cn } from "@plane/utils"; // hooks import useTimezone from "@/hooks/use-timezone"; type TTimezoneSelect = { value: string | undefined; onChange: (value: string) => void; error?: boolean; label?: string; buttonClassName?: string; className?: string; optionsClassName?: string; disabled?: boolean; }; export const TimezoneSelect = observer(function TimezoneSelect(props: TTimezoneSelect) { // props const { value, onChange, error = false, label = "Select a timezone", buttonClassName = "", className = "", optionsClassName = "", disabled = false, } = props; // hooks const { disabled: isDisabled, timezones, selectedValue } = useTimezone(); return (