mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
17 lines
355 B
JavaScript
17 lines
355 B
JavaScript
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
import styles from './DocToc.module.scss'
|
|
|
|
const DocToc = ({ tableOfContents }) => (
|
|
<aside
|
|
className={styles.toc}
|
|
dangerouslySetInnerHTML={{ __html: tableOfContents }}
|
|
/>
|
|
)
|
|
|
|
DocToc.propTypes = {
|
|
tableOfContents: PropTypes.string.isRequired
|
|
}
|
|
|
|
export default DocToc
|