import React from 'react' import PropTypes from 'prop-types' import Link from './link' import { H5 } from './typography' import classes from '../styles/card.module.sass' const Card = ({ title, to, image, header, onClick, children }) => (
{header && ( {header} )}
{image && (
)} {title && ( {title} )}
{children}
) Card.propTypes = { title: PropTypes.string, to: PropTypes.string, image: PropTypes.string, card: PropTypes.node, onClick: PropTypes.func, children: PropTypes.node, } export default Card