import React from 'react'; import {MenuListProps} from 'react-select'; import {DropdownMenuListStyle as S} from './dropdown-menu-list.style'; import {components as RS} from 'react-select'; import type { IDropdownExtendedMenuComponent, IDropdownMenuList, } from './dropdown-menu-list.type'; export const DropdownMenuListComponent: React.FC = ({ children, header, footer, ...rest }) => { return ( {!!header && header(rest?.selectProps)} {children} {!!footer && footer(rest?.selectProps)} ); }; export const DropdownMenuListHOC = ( header?: IDropdownExtendedMenuComponent, footer?: IDropdownExtendedMenuComponent, ) => (menuListProps: MenuListProps) => ( );