diff --git a/src/pages/BlogPost.tsx b/src/pages/BlogPost.tsx index 5be2b7c..ea6e401 100644 --- a/src/pages/BlogPost.tsx +++ b/src/pages/BlogPost.tsx @@ -5,7 +5,6 @@ import { NotFound } from './NotFound'; import style from '@styles/BlogPost.module.scss'; -import { get } from 'http'; interface TableOfContentsItem { title: string; @@ -30,6 +29,21 @@ function dedent(str: string): string { return lines.map(line => line.slice(minIndent)).join('\n'); } +const TableOfContents = ({ toc }: { toc: TableOfContentsItem[] }) => { + return ( +