Private
Public Access
1
0

feat: Fluent UI Outlook Lite + connections mockup

This commit is contained in:
2026-04-14 18:52:25 +00:00
parent 1199eff6c3
commit dfa4010406
34820 changed files with 1003813 additions and 205 deletions

View File

@@ -0,0 +1,16 @@
'use client';
import { useHasParentContext } from '@fluentui/react-context-selector';
import { useMenuContext_unstable } from '../contexts/menuContext';
import { MenuListContext } from '../contexts/menuListContext';
/**
* A component can be a part of a submenu whether its menu context `isSubmenu` flag is true
* or whether it is a part of a `MenuList`
*
* A simple hook to check box contexts easily
*
* @returns whether the component is part of a submenu
*/ export function useIsSubmenu() {
const menuContextValue = useMenuContext_unstable((context)=>context.isSubmenu);
const hasMenuListContext = useHasParentContext(MenuListContext);
return menuContextValue || hasMenuListContext;
}