-
Notifications
You must be signed in to change notification settings - Fork 183
Expand file tree
/
Copy pathindex.jsx
More file actions
29 lines (26 loc) · 808 Bytes
/
index.jsx
File metadata and controls
29 lines (26 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import React from 'react';
import { PluginSlot } from '@openedx/frontend-plugin-framework';
import LearningHeaderUserMenuItems, { learningHeaderUserMenuDataShape } from '../../learning-header/LearningHeaderUserMenuItems';
const LearningUserMenuSlot = ({
items,
handleKeyDown,
firstMenuItemRef,
lastMenuItemRef,
}) => (
<PluginSlot
id="org.openedx.frontend.layout.header_learning_user_menu.v1"
idAliases={['learning_user_menu_slot']}
slotOptions={{
mergeProps: true,
}}
>
<LearningHeaderUserMenuItems
items={items}
handleKeyDown={handleKeyDown}
firstMenuItemRef={firstMenuItemRef}
lastMenuItemRef={lastMenuItemRef}
/>
</PluginSlot>
);
LearningUserMenuSlot.propTypes = learningHeaderUserMenuDataShape;
export default LearningUserMenuSlot;