import type { Theme } from '@fluentui-react-native/framework'; import { buildUseTokens } from '@fluentui-react-native/framework'; import { getCurrentAppearance, isHighContrast } from '@fluentui-react-native/design/theming'; import type { MenuPopoverTokens } from './MenuPopover.types'; import { menuPopoverName } from './MenuPopover.types'; export const useMenuPopoverTokens = buildUseTokens( (t: Theme) => ({ borderWidth: 1, borderRadius: 5, borderColor: isHighContrast() ? t.colors.neutralStroke1 : getCurrentAppearance(t.host.appearance, 'light') === 'dark' ? t.colors.neutralStroke3 : t.colors.transparentStroke, }), menuPopoverName, );