1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-06-29 00:58:02 +02:00
docs/src/components/DocFooter.jsx
Matthias Kretschmann 71418549b0
many content changes
* auto placeholder for empty content
* split up doc components
* add global footer
* video embedding
* more plugins
* spacing fixes
2018-11-10 00:16:41 +01:00

25 lines
652 B
JavaScript

import React from 'react'
import PropTypes from 'prop-types'
import { ReactComponent as Pencil } from '../images/pencil.svg'
import styles from './DocFooter.module.scss'
const githubContentPath =
'https://github.com/oceanprotocol/docs/blob/master/content'
const DocFooter = ({ post }) => (
<footer className={styles.footer}>
<a
href={`${githubContentPath}/${post.parent.relativePath}`}
className={!post.html ? styles.active : null}
>
<Pencil /> Edit this page on GitHub
</a>
</footer>
)
DocFooter.propTypes = {
post: PropTypes.object.isRequired
}
export default DocFooter