+
+ Files
+ {files.map((file) => {
+ const numComments = globalStore.getCommentsForFile(file.id).length;
+
+ return (
+
+ {file.title}
+
+ {numComments}
+ {' '}
+ {plural('Comment', numComments)}
+
+ );
+ })}
+
+ );
};
diff --git a/src/SectionPage.tsx b/src/SectionPage.tsx
new file mode 100644
index 0000000..b3a5b5e
--- /dev/null
+++ b/src/SectionPage.tsx
@@ -0,0 +1,35 @@
+import * as types from './types';
+import {Files} from './Files';
+import {ChordProgression} from './ChordProgression';
+import {Comments} from './Comments';
+import {CreateComment} from './CreateComment';
+import {SectionTitle} from './SectionTitle';
+import {useGlobalStore} from './hooks/useGlobalStore';
+
+type SectionPageProps = {
+ projectId: string;
+ sectionId: string;
+}
+
+const SectionPage: React.FC