import React from 'react' ; import './style.less' ; type Props = { children : any ; widget : any ; } ; interface DropdownMenu { ( props ) : JSX . Element | null ; } const DropdownMenu = ( { children , widget } ) => { return ( < div className = "dropdown" > { children } < div className = "dropdown-box" > { widget } < /div> < /div>); } ; export default DropdownMenu ;