-
Notifications
You must be signed in to change notification settings - Fork 324
Expand file tree
/
Copy pathindex.jsx
More file actions
35 lines (32 loc) · 787 Bytes
/
Copy pathindex.jsx
File metadata and controls
35 lines (32 loc) · 787 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
30
31
32
33
34
35
import React from 'react';
import PropTypes from 'prop-types';
import { PluginSlot } from '@openedx/frontend-plugin-framework';
const SequenceNavigationSlot = ({
sequenceId,
unitId,
nextHandler,
onNavigate,
previousHandler,
}) => (
<PluginSlot
id="org.openedx.frontend.learning.sequence_navigation.v1"
slotOptions={{
mergeProps: true,
}}
pluginProps={{
sequenceId,
unitId,
nextHandler,
onNavigate,
previousHandler,
}}
/>
);
SequenceNavigationSlot.propTypes = {
sequenceId: PropTypes.string.isRequired,
unitId: PropTypes.string.isRequired,
nextHandler: PropTypes.func.isRequired,
onNavigate: PropTypes.func.isRequired,
previousHandler: PropTypes.func.isRequired,
};
export default SequenceNavigationSlot;