Files
powerpoint-toolbox/node_modules/@fluentui/react-menu/lib/components/MenuPopover/MenuPopover.js
T
2025-03-07 19:22:02 +01:00

15 lines
757 B
JavaScript

import * as React from 'react';
import { useMenuPopover_unstable } from './useMenuPopover';
import { useMenuPopoverStyles_unstable } from './useMenuPopoverStyles.styles';
import { renderMenuPopover_unstable } from './renderMenuPopover';
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
/**
* Popover intended to wrap `MenuList` and adds styling and interaction support specific to menus
*/ export const MenuPopover = /*#__PURE__*/ React.forwardRef((props, ref)=>{
const state = useMenuPopover_unstable(props, ref);
useMenuPopoverStyles_unstable(state);
useCustomStyleHook_unstable('useMenuPopoverStyles_unstable')(state);
return renderMenuPopover_unstable(state);
});
MenuPopover.displayName = 'MenuPopover';