MCPcopy Create free account
hub / github.com/experdot/pointer / withStandardMenu

Function withStandardMenu

src/renderer/src/utils/shortcutPresentation.ts:75–86  ·  view source on GitHub ↗
(
  menu: NonNullable<DropdownProps['menu']>
)

Source from the content-addressed store, hash-verified

73}
74
75export function withStandardMenu(
76 menu: NonNullable<DropdownProps['menu']>
77): NonNullable<DropdownProps['menu']> {
78 return {
79 ...menu,
80 rootClassName: mergeClassNames(menu.rootClassName, STANDARD_DROPDOWN_CLASS_NAME),
81 style: {
82 minWidth: STANDARD_MENU_MIN_WIDTH,
83 ...(menu.style ?? {})
84 }
85 }
86}
87
88export function getStandardDropdownProps(
89 menu: NonNullable<DropdownProps['menu']>

Callers 1

getStandardDropdownPropsFunction · 0.85

Calls 1

mergeClassNamesFunction · 0.85

Tested by

no test coverage detected