Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/DogPawHat/react-atomic-design.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031/* @flow */import * as React from 'react'
import Card from '_components/atoms/card'import Button from '_components/atoms/button'import Title from '_components/atoms/title'
type Props = { children?: React.Node, className?: string, title: string, button?: string,}
const Block = (props: Props): React.Element<*> => ( <Card className={props.className}> <Title>{props.title}</Title> {props.children} {props.button !== '' && <Button>{props.button}</Button>} </Card>)
Block.defaultProps = { className: '', children: '', title: '', button: '',}
export default Block