import type { ReactElement } from "react" import type { Key } from "react-aria-components" import type { RegisterOptions } from "react-hook-form" interface ReactAriaSelectProps extends Omit< React.SelectHTMLAttributes, "onSelect" | "value" > { defaultSelectedKey?: Key items: { label: string; value: Key }[] label: string name: string maxHeight?: number showRadioButton?: boolean discreet?: boolean isNestedInModal?: boolean // eslint-disable-next-line @typescript-eslint/no-explicit-any optionsIcon?: ReactElement } export interface SelectProps extends Omit< React.SelectHTMLAttributes, "name" | "onSelect" | "placeholder" >, Omit { registerOptions?: RegisterOptions }