mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
25 lines
649 B
JavaScript
25 lines
649 B
JavaScript
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
import { Link } from 'gatsby'
|
|
import Content from './Content'
|
|
import styles from './HeaderSection.module.scss'
|
|
|
|
const HeaderSection = ({ title }) => (
|
|
<aside className={styles.headerSection}>
|
|
<Content>
|
|
<h1 className={styles.headerSectionTitle}>
|
|
<Link className={styles.rootLink} to="/">
|
|
/
|
|
</Link>
|
|
{title}
|
|
</h1>
|
|
</Content>
|
|
</aside>
|
|
)
|
|
|
|
HeaderSection.propTypes = {
|
|
title: PropTypes.PropTypes.oneOfType([PropTypes.array, PropTypes.string])
|
|
}
|
|
|
|
export default HeaderSection
|