@react-native-menu/menu 0.6.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +1 -2
- package/ios/MenuView.swift +9 -9
- package/ios/RCTMenuItem.swift +24 -13
- package/lib/commonjs/types.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/types.d.ts +4 -0
- package/package.json +2 -2
- package/src/types.ts +4 -0
package/android/build.gradle
CHANGED
package/ios/MenuView.swift
CHANGED
|
@@ -23,7 +23,7 @@ class MenuView: UIButton {
|
|
|
23
23
|
self.setup()
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
private var _title: String = "";
|
|
28
28
|
@objc var title: NSString? {
|
|
29
29
|
didSet {
|
|
@@ -35,35 +35,35 @@ class MenuView: UIButton {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
@objc var onPressAction: RCTDirectEventBlock?
|
|
38
|
-
|
|
38
|
+
|
|
39
39
|
@objc var shouldOpenOnLongPress: Bool = false {
|
|
40
40
|
didSet {
|
|
41
41
|
self.setup()
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
|
|
45
45
|
override init(frame: CGRect) {
|
|
46
46
|
super.init(frame: frame)
|
|
47
47
|
self.setup()
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
|
|
51
51
|
func setup () {
|
|
52
|
-
let menu = UIMenu(title:_title, identifier: nil,
|
|
52
|
+
let menu = UIMenu(title:_title, identifier: nil, children: self._actions)
|
|
53
53
|
|
|
54
54
|
self.menu = menu
|
|
55
55
|
self.showsMenuAsPrimaryAction = !shouldOpenOnLongPress
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
|
|
58
58
|
override func reactSetFrame(_ frame: CGRect) {
|
|
59
59
|
super.reactSetFrame(frame);
|
|
60
60
|
};
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
|
|
62
|
+
|
|
63
63
|
required init?(coder aDecoder: NSCoder) {
|
|
64
64
|
fatalError("init(coder:) has not been implemented")
|
|
65
65
|
}
|
|
66
|
-
|
|
66
|
+
|
|
67
67
|
@objc func sendButtonAction(_ action: UIAction) {
|
|
68
68
|
if let onPress = onPressAction {
|
|
69
69
|
onPress(["event":action.identifier.rawValue])
|
package/ios/RCTMenuItem.swift
CHANGED
|
@@ -9,38 +9,45 @@ import UIKit;
|
|
|
9
9
|
|
|
10
10
|
@available(iOS 13.0, *)
|
|
11
11
|
class RCTMenuAction {
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
var identifier: UIAction.Identifier?;
|
|
14
14
|
var title: String;
|
|
15
15
|
var subtitle: String?
|
|
16
|
+
var displayInline: Bool
|
|
16
17
|
var image: UIImage?
|
|
17
18
|
var attributes: UIAction.Attributes = []
|
|
18
19
|
var state: UIAction.State = .off
|
|
19
20
|
var subactions: [RCTMenuAction] = []
|
|
20
|
-
|
|
21
|
+
|
|
21
22
|
init(details: NSDictionary){
|
|
22
|
-
|
|
23
|
+
|
|
23
24
|
if let identifier = details["id"] as? NSString {
|
|
24
25
|
self.identifier = UIAction.Identifier(rawValue: identifier as String);
|
|
25
26
|
}
|
|
26
|
-
|
|
27
|
+
|
|
27
28
|
if let image = details["image"] as? NSString {
|
|
28
29
|
self.image = UIImage(systemName: image as String);
|
|
29
30
|
if let imageColor = details["imageColor"] {
|
|
30
31
|
self.image = self.image?.withTintColor(RCTConvert.uiColor(imageColor), renderingMode: .alwaysOriginal)
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
|
-
|
|
34
|
+
|
|
34
35
|
if let title = details["title"] as? NSString {
|
|
35
36
|
self.title = title as String;
|
|
36
37
|
} else {
|
|
37
38
|
self.title = "";
|
|
38
39
|
}
|
|
39
|
-
|
|
40
|
+
|
|
40
41
|
if let subtitle = details["subtitle"] as? NSString {
|
|
41
42
|
self.subtitle = subtitle as String;
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
+
|
|
45
|
+
if let displayInline = details["displayInline"] as? Bool {
|
|
46
|
+
self.displayInline = displayInline as Bool;
|
|
47
|
+
} else {
|
|
48
|
+
self.displayInline = false;
|
|
49
|
+
}
|
|
50
|
+
|
|
44
51
|
if let attributes = details["attributes"] as? NSDictionary {
|
|
45
52
|
if (attributes["destructive"] as? Bool) == true {
|
|
46
53
|
self.attributes.update(with: .destructive)
|
|
@@ -52,7 +59,7 @@ class RCTMenuAction {
|
|
|
52
59
|
self.attributes.update(with: .hidden)
|
|
53
60
|
}
|
|
54
61
|
}
|
|
55
|
-
|
|
62
|
+
|
|
56
63
|
if let state = details["state"] as? NSString {
|
|
57
64
|
if state=="on" {
|
|
58
65
|
self.state = .on
|
|
@@ -64,7 +71,7 @@ class RCTMenuAction {
|
|
|
64
71
|
self.state = .mixed
|
|
65
72
|
}
|
|
66
73
|
}
|
|
67
|
-
|
|
74
|
+
|
|
68
75
|
if let subactions = details["subactions"] as? NSArray {
|
|
69
76
|
if subactions.count > 0 {
|
|
70
77
|
for subaction in subactions {
|
|
@@ -72,17 +79,21 @@ class RCTMenuAction {
|
|
|
72
79
|
}
|
|
73
80
|
}
|
|
74
81
|
}
|
|
75
|
-
|
|
76
|
-
|
|
82
|
+
|
|
83
|
+
|
|
77
84
|
}
|
|
78
|
-
|
|
85
|
+
|
|
79
86
|
func createUIMenuElement(_ handler: @escaping UIActionHandler) -> UIMenuElement {
|
|
80
87
|
if subactions.count > 0 {
|
|
81
88
|
var subMenuActions: [UIMenuElement] = []
|
|
82
89
|
subactions.forEach { subaction in
|
|
83
90
|
subMenuActions.append(subaction.createUIMenuElement(handler))
|
|
84
91
|
}
|
|
85
|
-
|
|
92
|
+
if self.displayInline {
|
|
93
|
+
return UIMenu(title: title, image: image, options: .displayInline, children: subMenuActions)
|
|
94
|
+
} else {
|
|
95
|
+
return UIMenu(title: title, image: image, children: subMenuActions)
|
|
96
|
+
}
|
|
86
97
|
}
|
|
87
98
|
return UIAction(title: title, image: image, identifier: identifier, discoverabilityTitle: subtitle, attributes: attributes, state: state, handler: handler)
|
|
88
99
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type {\n ColorValue,\n processColor,\n StyleProp,\n ViewStyle,\n} from 'react-native';\nimport type * as React from 'react';\n\nexport type NativeActionEvent = {\n nativeEvent: {\n event: string;\n };\n};\n\ntype MenuAttributes = {\n /**\n * An attribute indicating the destructive style.\n */\n destructive?: boolean;\n /**\n * An attribute indicating the disabled style.\n */\n disabled?: boolean;\n /**\n * An attribute indicating the hidden style.\n */\n hidden?: boolean;\n};\n\n/**\n * The state of the action.\n * - off: A constant indicating the menu element is in the “off” state.\n * - on: A constant indicating the menu element is in the “on” state.\n * - mixed: A constant indicating the menu element is in the “mixed” state.\n */\ntype MenuState = 'off' | 'on' | 'mixed';\n\nexport type MenuAction = {\n /**\n * Identifier of the menu action.\n * The value set in this id will be returned when menu is selected.\n */\n id?: string;\n /**\n * The action's title.\n */\n title: string;\n /**\n * (Android only)\n * The action's title color.\n * @platform Android\n */\n titleColor?: number | ColorValue;\n /**\n * (iOS14+ only)\n * An elaborated title that explains the purpose of the action.\n * @platform iOS\n */\n subtitle?: string;\n /**\n * The attributes indicating the style of the action.\n */\n attributes?: MenuAttributes;\n /**\n * (iOS14+ only)\n * The state of the action.\n * @platform iOS\n */\n state?: MenuState;\n /**\n * (Android and iOS13+ only)\n * - The action's image.\n * - Allows icon name included in project or system (Android) resources drawables and\n * in SF Symbol (iOS)\n * @example // (iOS)\n * image=\"plus\"\n * @example // (Android)\n * image=\"ic_menu_add\"\n * - TODO: Allow images other than those included in SF Symbol and resources drawables\n */\n image?: string;\n /**\n * (Android and iOS13+ only)\n * - The action's image color.\n */\n imageColor?: number | ColorValue;\n /**\n * (Android and iOS14+ only)\n * - Actions to be displayed in the sub menu\n * - On Android it does not support nesting next sub menus in sub menu item\n */\n subactions?: MenuAction[];\n};\n\ntype MenuComponentPropsBase = {\n style?: StyleProp<ViewStyle>;\n /**\n * Callback function that will be called when selecting a menu item.\n * It will contain id of the given action.\n */\n onPressAction?: ({ nativeEvent }: NativeActionEvent) => void;\n /**\n * Actions to be displayed in the menu.\n */\n actions: MenuAction[];\n /**\n * The title of the menu.\n */\n title?: string;\n /**\n * (Android API 23+)\n * Boolean value determines whether popup menu should be anchored\n * to right corner of parent view - default value is `false`\n * @platform Android\n */\n isAnchoredToRight?: boolean;\n /**\n * Determines if menu should open after long press or on normal press\n *\n * @default false\n */\n shouldOpenOnLongPress?: boolean;\n};\n\nexport type MenuComponentProps =\n React.PropsWithChildren<MenuComponentPropsBase>;\n\nexport type ProcessedMenuAction = Omit<\n MenuAction,\n 'imageColor' | 'titleColor' | 'subactions'\n> & {\n imageColor: ReturnType<typeof processColor>;\n titleColor: ReturnType<typeof processColor>;\n subactions?: ProcessedMenuAction[];\n};\n\nexport type NativeMenuComponentProps = {\n style?: StyleProp<ViewStyle>;\n onPressAction?: ({ nativeEvent }: NativeActionEvent) => void;\n actions: ProcessedMenuAction[];\n title?: string;\n};\n"],"mappings":""}
|
|
1
|
+
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type {\n ColorValue,\n processColor,\n StyleProp,\n ViewStyle,\n} from 'react-native';\nimport type * as React from 'react';\n\nexport type NativeActionEvent = {\n nativeEvent: {\n event: string;\n };\n};\n\ntype MenuAttributes = {\n /**\n * An attribute indicating the destructive style.\n */\n destructive?: boolean;\n /**\n * An attribute indicating the disabled style.\n */\n disabled?: boolean;\n /**\n * An attribute indicating the hidden style.\n */\n hidden?: boolean;\n};\n\n/**\n * The state of the action.\n * - off: A constant indicating the menu element is in the “off” state.\n * - on: A constant indicating the menu element is in the “on” state.\n * - mixed: A constant indicating the menu element is in the “mixed” state.\n */\ntype MenuState = 'off' | 'on' | 'mixed';\n\nexport type MenuAction = {\n /**\n * Identifier of the menu action.\n * The value set in this id will be returned when menu is selected.\n */\n id?: string;\n /**\n * The action's title.\n */\n title: string;\n /**\n * (Android only)\n * The action's title color.\n * @platform Android\n */\n titleColor?: number | ColorValue;\n /**\n * (iOS14+ only)\n * An elaborated title that explains the purpose of the action.\n * @platform iOS\n */\n subtitle?: string;\n /**\n * The attributes indicating the style of the action.\n */\n attributes?: MenuAttributes;\n /**\n * (iOS14+ only)\n * The state of the action.\n * @platform iOS\n */\n state?: MenuState;\n /**\n * (Android and iOS13+ only)\n * - The action's image.\n * - Allows icon name included in project or system (Android) resources drawables and\n * in SF Symbol (iOS)\n * @example // (iOS)\n * image=\"plus\"\n * @example // (Android)\n * image=\"ic_menu_add\"\n * - TODO: Allow images other than those included in SF Symbol and resources drawables\n */\n image?: string;\n /**\n * (Android and iOS13+ only)\n * - The action's image color.\n */\n imageColor?: number | ColorValue;\n /**\n * (Android and iOS14+ only)\n * - Actions to be displayed in the sub menu\n * - On Android it does not support nesting next sub menus in sub menu item\n */\n subactions?: MenuAction[];\n /**\n * Whether subactions should be inline (separated by divider) or nested (sub menu)\n */\n displayInline?: boolean;\n};\n\ntype MenuComponentPropsBase = {\n style?: StyleProp<ViewStyle>;\n /**\n * Callback function that will be called when selecting a menu item.\n * It will contain id of the given action.\n */\n onPressAction?: ({ nativeEvent }: NativeActionEvent) => void;\n /**\n * Actions to be displayed in the menu.\n */\n actions: MenuAction[];\n /**\n * The title of the menu.\n */\n title?: string;\n /**\n * (Android API 23+)\n * Boolean value determines whether popup menu should be anchored\n * to right corner of parent view - default value is `false`\n * @platform Android\n */\n isAnchoredToRight?: boolean;\n /**\n * Determines if menu should open after long press or on normal press\n *\n * @default false\n */\n shouldOpenOnLongPress?: boolean;\n};\n\nexport type MenuComponentProps =\n React.PropsWithChildren<MenuComponentPropsBase>;\n\nexport type ProcessedMenuAction = Omit<\n MenuAction,\n 'imageColor' | 'titleColor' | 'subactions'\n> & {\n imageColor: ReturnType<typeof processColor>;\n titleColor: ReturnType<typeof processColor>;\n subactions?: ProcessedMenuAction[];\n};\n\nexport type NativeMenuComponentProps = {\n style?: StyleProp<ViewStyle>;\n onPressAction?: ({ nativeEvent }: NativeActionEvent) => void;\n actions: ProcessedMenuAction[];\n title?: string;\n};\n"],"mappings":""}
|
package/lib/module/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type {\n ColorValue,\n processColor,\n StyleProp,\n ViewStyle,\n} from 'react-native';\nimport type * as React from 'react';\n\nexport type NativeActionEvent = {\n nativeEvent: {\n event: string;\n };\n};\n\ntype MenuAttributes = {\n /**\n * An attribute indicating the destructive style.\n */\n destructive?: boolean;\n /**\n * An attribute indicating the disabled style.\n */\n disabled?: boolean;\n /**\n * An attribute indicating the hidden style.\n */\n hidden?: boolean;\n};\n\n/**\n * The state of the action.\n * - off: A constant indicating the menu element is in the “off” state.\n * - on: A constant indicating the menu element is in the “on” state.\n * - mixed: A constant indicating the menu element is in the “mixed” state.\n */\ntype MenuState = 'off' | 'on' | 'mixed';\n\nexport type MenuAction = {\n /**\n * Identifier of the menu action.\n * The value set in this id will be returned when menu is selected.\n */\n id?: string;\n /**\n * The action's title.\n */\n title: string;\n /**\n * (Android only)\n * The action's title color.\n * @platform Android\n */\n titleColor?: number | ColorValue;\n /**\n * (iOS14+ only)\n * An elaborated title that explains the purpose of the action.\n * @platform iOS\n */\n subtitle?: string;\n /**\n * The attributes indicating the style of the action.\n */\n attributes?: MenuAttributes;\n /**\n * (iOS14+ only)\n * The state of the action.\n * @platform iOS\n */\n state?: MenuState;\n /**\n * (Android and iOS13+ only)\n * - The action's image.\n * - Allows icon name included in project or system (Android) resources drawables and\n * in SF Symbol (iOS)\n * @example // (iOS)\n * image=\"plus\"\n * @example // (Android)\n * image=\"ic_menu_add\"\n * - TODO: Allow images other than those included in SF Symbol and resources drawables\n */\n image?: string;\n /**\n * (Android and iOS13+ only)\n * - The action's image color.\n */\n imageColor?: number | ColorValue;\n /**\n * (Android and iOS14+ only)\n * - Actions to be displayed in the sub menu\n * - On Android it does not support nesting next sub menus in sub menu item\n */\n subactions?: MenuAction[];\n};\n\ntype MenuComponentPropsBase = {\n style?: StyleProp<ViewStyle>;\n /**\n * Callback function that will be called when selecting a menu item.\n * It will contain id of the given action.\n */\n onPressAction?: ({ nativeEvent }: NativeActionEvent) => void;\n /**\n * Actions to be displayed in the menu.\n */\n actions: MenuAction[];\n /**\n * The title of the menu.\n */\n title?: string;\n /**\n * (Android API 23+)\n * Boolean value determines whether popup menu should be anchored\n * to right corner of parent view - default value is `false`\n * @platform Android\n */\n isAnchoredToRight?: boolean;\n /**\n * Determines if menu should open after long press or on normal press\n *\n * @default false\n */\n shouldOpenOnLongPress?: boolean;\n};\n\nexport type MenuComponentProps =\n React.PropsWithChildren<MenuComponentPropsBase>;\n\nexport type ProcessedMenuAction = Omit<\n MenuAction,\n 'imageColor' | 'titleColor' | 'subactions'\n> & {\n imageColor: ReturnType<typeof processColor>;\n titleColor: ReturnType<typeof processColor>;\n subactions?: ProcessedMenuAction[];\n};\n\nexport type NativeMenuComponentProps = {\n style?: StyleProp<ViewStyle>;\n onPressAction?: ({ nativeEvent }: NativeActionEvent) => void;\n actions: ProcessedMenuAction[];\n title?: string;\n};\n"],"mappings":""}
|
|
1
|
+
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type {\n ColorValue,\n processColor,\n StyleProp,\n ViewStyle,\n} from 'react-native';\nimport type * as React from 'react';\n\nexport type NativeActionEvent = {\n nativeEvent: {\n event: string;\n };\n};\n\ntype MenuAttributes = {\n /**\n * An attribute indicating the destructive style.\n */\n destructive?: boolean;\n /**\n * An attribute indicating the disabled style.\n */\n disabled?: boolean;\n /**\n * An attribute indicating the hidden style.\n */\n hidden?: boolean;\n};\n\n/**\n * The state of the action.\n * - off: A constant indicating the menu element is in the “off” state.\n * - on: A constant indicating the menu element is in the “on” state.\n * - mixed: A constant indicating the menu element is in the “mixed” state.\n */\ntype MenuState = 'off' | 'on' | 'mixed';\n\nexport type MenuAction = {\n /**\n * Identifier of the menu action.\n * The value set in this id will be returned when menu is selected.\n */\n id?: string;\n /**\n * The action's title.\n */\n title: string;\n /**\n * (Android only)\n * The action's title color.\n * @platform Android\n */\n titleColor?: number | ColorValue;\n /**\n * (iOS14+ only)\n * An elaborated title that explains the purpose of the action.\n * @platform iOS\n */\n subtitle?: string;\n /**\n * The attributes indicating the style of the action.\n */\n attributes?: MenuAttributes;\n /**\n * (iOS14+ only)\n * The state of the action.\n * @platform iOS\n */\n state?: MenuState;\n /**\n * (Android and iOS13+ only)\n * - The action's image.\n * - Allows icon name included in project or system (Android) resources drawables and\n * in SF Symbol (iOS)\n * @example // (iOS)\n * image=\"plus\"\n * @example // (Android)\n * image=\"ic_menu_add\"\n * - TODO: Allow images other than those included in SF Symbol and resources drawables\n */\n image?: string;\n /**\n * (Android and iOS13+ only)\n * - The action's image color.\n */\n imageColor?: number | ColorValue;\n /**\n * (Android and iOS14+ only)\n * - Actions to be displayed in the sub menu\n * - On Android it does not support nesting next sub menus in sub menu item\n */\n subactions?: MenuAction[];\n /**\n * Whether subactions should be inline (separated by divider) or nested (sub menu)\n */\n displayInline?: boolean;\n};\n\ntype MenuComponentPropsBase = {\n style?: StyleProp<ViewStyle>;\n /**\n * Callback function that will be called when selecting a menu item.\n * It will contain id of the given action.\n */\n onPressAction?: ({ nativeEvent }: NativeActionEvent) => void;\n /**\n * Actions to be displayed in the menu.\n */\n actions: MenuAction[];\n /**\n * The title of the menu.\n */\n title?: string;\n /**\n * (Android API 23+)\n * Boolean value determines whether popup menu should be anchored\n * to right corner of parent view - default value is `false`\n * @platform Android\n */\n isAnchoredToRight?: boolean;\n /**\n * Determines if menu should open after long press or on normal press\n *\n * @default false\n */\n shouldOpenOnLongPress?: boolean;\n};\n\nexport type MenuComponentProps =\n React.PropsWithChildren<MenuComponentPropsBase>;\n\nexport type ProcessedMenuAction = Omit<\n MenuAction,\n 'imageColor' | 'titleColor' | 'subactions'\n> & {\n imageColor: ReturnType<typeof processColor>;\n titleColor: ReturnType<typeof processColor>;\n subactions?: ProcessedMenuAction[];\n};\n\nexport type NativeMenuComponentProps = {\n style?: StyleProp<ViewStyle>;\n onPressAction?: ({ nativeEvent }: NativeActionEvent) => void;\n actions: ProcessedMenuAction[];\n title?: string;\n};\n"],"mappings":""}
|
|
@@ -81,6 +81,10 @@ export declare type MenuAction = {
|
|
|
81
81
|
* - On Android it does not support nesting next sub menus in sub menu item
|
|
82
82
|
*/
|
|
83
83
|
subactions?: MenuAction[];
|
|
84
|
+
/**
|
|
85
|
+
* Whether subactions should be inline (separated by divider) or nested (sub menu)
|
|
86
|
+
*/
|
|
87
|
+
displayInline?: boolean;
|
|
84
88
|
};
|
|
85
89
|
declare type MenuComponentPropsBase = {
|
|
86
90
|
style?: StyleProp<ViewStyle>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-menu/menu",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "UIMenu component for react-native",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@types/jest": "^29.1.2",
|
|
49
49
|
"@types/react": "^17.0.1",
|
|
50
50
|
"@types/react-native": "0.67.6",
|
|
51
|
-
"eslint": "8.
|
|
51
|
+
"eslint": "8.26.0",
|
|
52
52
|
"eslint-config-prettier": "^8.1.0",
|
|
53
53
|
"eslint-plugin-prettier": "^4.2.1",
|
|
54
54
|
"jest": "^29.1.2",
|
package/src/types.ts
CHANGED
|
@@ -90,6 +90,10 @@ export type MenuAction = {
|
|
|
90
90
|
* - On Android it does not support nesting next sub menus in sub menu item
|
|
91
91
|
*/
|
|
92
92
|
subactions?: MenuAction[];
|
|
93
|
+
/**
|
|
94
|
+
* Whether subactions should be inline (separated by divider) or nested (sub menu)
|
|
95
|
+
*/
|
|
96
|
+
displayInline?: boolean;
|
|
93
97
|
};
|
|
94
98
|
|
|
95
99
|
type MenuComponentPropsBase = {
|