import React from 'react' import { Item as StatelyItem, Section } from '@react-stately/collections' import { ComboBox, Select } from './subcomponents' import { type ComboBoxProps, type SelectItem, type SelectProps, type SingleSelectProps, } from './types' export const SingleSelect = (props: SingleSelectProps): JSX.Element => { const { isComboBox, children, ...rest } = props if (isComboBox) { return )}>{children} } return } type CustomItemProps = { selectedIcon?: 'check' | 'radio' selectedPosition?: 'start' | 'end' key: string children?: React.ReactNode [key: string]: any } export const Item = React.forwardRef((props, ref) => { // @ts-expect-error: StatelyItem doesn't know about our internal item props return }) // @ts-expect-error: doesn't know that the Item can have this static property Item.getCollectionNode = StatelyItem.getCollectionNode Item.displayName = 'SingleSelectItem' SingleSelect.Item = Item SingleSelect.Section = Section