import React from 'react' import useTheme from '../styles/use-theme' import withDefaults from '../utils/with-defaults' import { useSelectContext } from './select-context' import Dropdown from '../shared/dropdown' interface Props { visible: boolean className?: string dropdownStyle?: object disableMatchWidth?: boolean } const defaultProps = { className: '', dropdownStyle: {}, } type NativeAttrs = Omit, keyof Props> export type SelectDropdownProps = Props & typeof defaultProps & NativeAttrs const SelectDropdown: React.FC> = ({ visible, children, className, dropdownStyle, disableMatchWidth, }) => { const theme = useTheme() const { ref } = useSelectContext() return (
{children}
) } export default withDefaults(SelectDropdown, defaultProps)