import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import Button from './button' import Tag from './tag' import { H1 } from './typography' import classes from '../styles/title.module.sass' const Title = ({ id, title, tag, version, teaser, source, image, children, ...props }) => (
{(image || source) && (
{source && ( )} {image && (
)}
)}

{title}

{tag && {tag}} {version && ( {version} )} {teaser &&
{teaser}
} {children}
) Title.propTypes = { title: PropTypes.string, tag: PropTypes.string, teaser: PropTypes.node, source: PropTypes.string, image: PropTypes.string, children: PropTypes.node, } export default Title