mirror of https://github.com/kremalicious/blog.git
18 lines
324 B
TypeScript
18 lines
324 B
TypeScript
import React, { ReactElement } from 'react'
|
|
import * as styles from './Toc.module.css'
|
|
|
|
const PostToc = ({
|
|
tableOfContents
|
|
}: {
|
|
tableOfContents: string
|
|
}): ReactElement => {
|
|
return (
|
|
<nav
|
|
className={styles.toc}
|
|
dangerouslySetInnerHTML={{ __html: tableOfContents }}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export default PostToc
|