import { type SelectHTMLAttributes, useId } from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faChevronDown } from "@fortawesome/pro-duotone-svg-icons"; import { HintText } from "@/components/base/input/hint-text"; import { Label } from "@/components/base/input/label"; import { cx } from "@/utils/cx"; interface NativeSelectProps extends SelectHTMLAttributes { label?: string; hint?: string; selectClassName?: string; options: { label: string; value: string; disabled?: boolean }[]; } export const NativeSelect = ({ label, hint, options, className, selectClassName, ...props }: NativeSelectProps) => { const id = useId(); const selectId = `select-native-${id}`; const hintId = `select-native-hint-${id}`; return (
{label && ( )}
{hint && ( {hint} )}
); };