mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-05-24 08:49:39 -04:00
20 lines
528 B
TypeScript
20 lines
528 B
TypeScript
import React from 'react';
|
|
|
|
import fs from 'fs';
|
|
import path from 'path';
|
|
import MarkdownPage from "web/components/markdown";
|
|
|
|
const FILENAME = 'constitution';
|
|
|
|
export async function getStaticProps() {
|
|
const filePath = path.join(process.cwd(), 'public', 'md', FILENAME + '.md');
|
|
const content = fs.readFileSync(filePath, 'utf8');
|
|
return {props: {content}};
|
|
}
|
|
|
|
type Props = { content: string };
|
|
|
|
export default function Faq({content}: Props) {
|
|
return <MarkdownPage content={content} filename={FILENAME}></MarkdownPage>
|
|
}
|