import React from 'react' ; import { ExpViewActionMenuContent } from './action_menu' ; import HeaderMenuPortal from '../../../header_menu_portal' ; import { TypedLensByValueInput } from '../../../../../../../lens/public' ; import { useExploratoryView } from '../../contexts/exploratory_view_config' ; interface Props { timeRange ? : { from : string ; to : string ; } ; lensAttributes : TypedLensByValueInput [ 'attributes' ] | null ; } export function ExpViewActionMenu ( props ) { const { setHeaderActionMenu , theme$ } = useExploratoryView ( ) ; return ( < HeaderMenuPortal setHeaderActionMenu = { setHeaderActionMenu } theme$ = { theme$ } > < ExpViewActionMenuContent { ... props } / > < /HeaderMenuPortal>); }