import React from 'react'; import { Combobox as DefaultCombobox } from './Combobox'; import { ComboboxNoDropdown } from './ComboboxNoDropdown'; import type { BaseComboboxProps, ComboboxOption, Variant } from './types'; import { type Placement } from '../../utils'; export type { ComboboxOption, ComboboxOptionGroup } from './types'; export type ComboboxProps = BaseComboboxProps & ( | { /** * The visual style of the Autocomplete. */ variant?: Extract; isMenuOpen?: boolean; placement?: Placement; hideToggleButton?: boolean; } | { variant: Extract; } ); export const Combobox = ({ variant, ...comboBoxProps }: ComboboxProps) => { return variant === 'noDropdown' ? ( ) : ( ); };