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

15 lines
721 B
JavaScript

import * as React from 'react';
import { useMenuItem_unstable } from './useMenuItem';
import { renderMenuItem_unstable } from './renderMenuItem';
import { useMenuItemStyles_unstable } from './useMenuItemStyles.styles';
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
/**
* Define a styled MenuItem, using the `useMenuItem_unstable` and `useMenuItemStyles_unstable` hook.
*/ export const MenuItem = /*#__PURE__*/ React.forwardRef((props, ref)=>{
const state = useMenuItem_unstable(props, ref);
useMenuItemStyles_unstable(state);
useCustomStyleHook_unstable('useMenuItemStyles_unstable')(state);
return renderMenuItem_unstable(state);
});
MenuItem.displayName = 'MenuItem';