import React, { useEffect, useRef, type HTMLAttributes, type Key, type ReactNode } from 'react' import { useListBox, type AriaListBoxOptions } from '@react-aria/listbox' import { type SelectState } from '@react-stately/select' import classnames from 'classnames' import { type OverrideClassName } from '~components/types/OverrideClassName' import { useIsClientReady } from '~components/utils/useIsClientReady' import { useSelectContext } from '../../context' import { type SingleSelectItem, type SingleSelectOption } from '../../types' import styles from './ListBox.module.scss' export type SingleListBoxProps