import React from 'react' import PropTypes from 'prop-types' import { Box, Flex } from 'rebass' import { Text } from 'components/UI' const PanelHeader = ({ children, ...rest }) => ( {children} ) PanelHeader.propTypes = { children: PropTypes.node } const PanelBody = ({ children, ...rest }) => ( {children} ) PanelBody.propTypes = { children: PropTypes.node } const PanelFooter = ({ children, ...rest }) => ( {children} ) PanelFooter.propTypes = { children: PropTypes.node } class Panel extends React.Component { static Header = PanelHeader static Body = PanelBody static Footer = PanelFooter render() { const { children, ...rest } = this.props return ( {children} ) } } export default Panel export { PanelHeader, PanelBody, PanelFooter }