mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-26 18:58:17 +00:00
34 lines
660 B
JavaScript
34 lines
660 B
JavaScript
/**
|
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
*
|
|
* @emails react-core
|
|
* @flow
|
|
*/
|
|
|
|
// $FlowExpectedError
|
|
import navCommunity from '../../content/community/nav.yml';
|
|
// $FlowExpectedError
|
|
import navDocs from '../../content/docs/nav.yml';
|
|
// $FlowExpectedError
|
|
import navTutorial from '../../content/tutorial/nav.yml';
|
|
|
|
const sectionListDocs = navDocs.map(
|
|
(item: Object): Object => ({
|
|
...item,
|
|
directory: 'docs',
|
|
}),
|
|
);
|
|
|
|
const sectionListCommunity = navCommunity.map(
|
|
(item: Object): Object => ({
|
|
...item,
|
|
directory: 'community',
|
|
}),
|
|
);
|
|
|
|
export {
|
|
sectionListCommunity,
|
|
sectionListDocs,
|
|
navTutorial as sectionListTutorial,
|
|
};
|