mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-15 22:27:12 +03:00
23 lines
558 B
JavaScript
23 lines
558 B
JavaScript
|
import React from 'react'
|
||
|
import PropTypes from 'prop-types'
|
||
|
|
||
|
import classes from '../styles/aside.module.sass'
|
||
|
|
||
|
const Aside = ({ title, children }) => (
|
||
|
<aside className={classes.root}>
|
||
|
<div className={classes.content} role="complementary">
|
||
|
<div className={classes.text}>
|
||
|
{title && <h4 className={classes.title}>{title}</h4>}
|
||
|
{children}
|
||
|
</div>
|
||
|
</div>
|
||
|
</aside>
|
||
|
)
|
||
|
|
||
|
Aside.propTypes = {
|
||
|
title: PropTypes.string,
|
||
|
children: PropTypes.node.isRequired,
|
||
|
}
|
||
|
|
||
|
export default Aside
|