import React from 'react' import useTheme from '../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?: Record disableMatchWidth?: boolean getPopupContainer?: () => HTMLElement | null } 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, getPopupContainer }) => { const theme = useTheme() const { ref } = useSelectContext() return (
{children}
) } export default withDefaults(SelectDropdown, defaultProps)