import React from 'react'
import PropTypes from 'prop-types'
import {
  Card,
  CardHeader,
  CardBody
} from 'reactstrap'

const CardContent = (props) => (
  <Card>
    <CardHeader>
      <span dangerouslySetInnerHTML={{__html: props.title}} />
    </CardHeader>
    <CardBody>
      {props.children}
    </CardBody>
  </Card>  
)
export default CardContent

CardContent.propTypes = {
  title: PropTypes.oneOfType([
    PropTypes.string,
    PropTypes.node
  ])
}