+
+
+
+
+ {rootBlock && iterMatches(rootBlock, (sectionId: UsageId) => (
+ iterMatches(blocks[sectionId], (subsectionId: UsageId) => (
+ iterMatches(blocks[subsectionId], (unitId: UsageId) => (
+ blocks[unitId].children.flatMap((blockId: UsageId) => (
+ blocks[blockId]?.links?.map(link => (
+
+ ))
+ )).filter(item => !!item)
+ ))
+ ))
+ ), true)}
+ {blockData &&
}
+
+ );
+};
diff --git a/src/components/SyllabusTab.tsx b/src/components/SyllabusTab.tsx
new file mode 100644
index 0000000..c03e86e
--- /dev/null
+++ b/src/components/SyllabusTab.tsx
@@ -0,0 +1,11 @@
+import { fetchOutlineTab } from '@src/course-home/data';
+import { TabContainer } from '@src/tab-page';
+import * as React from 'react';
+import { SYLLABUS_ROUTE } from '../const';
+import { Syllabus } from './Syllabus';
+
+export const SyllabusTab = ({ route }: { route: string }) => route === SYLLABUS_ROUTE && (
+