Total Complexity | 0 |
Complexity/F | 0 |
Lines of Code | 14 |
Function Count | 0 |
Duplicated Lines | 0 |
Ratio | 0 % |
Coverage | 100% |
Changes | 0 |
1 | import { CardProps } from 'reactstrap/lib/Card'; |
||
2 | import { Card, CardBody, CardHeader } from 'reactstrap'; |
||
3 | |||
4 | interface SimpleCardProps extends CardProps { |
||
5 | title?: string; |
||
6 | } |
||
7 | |||
8 | 2 | export const SimpleCard = ({ title, children, ...rest }: SimpleCardProps) => ( |
|
9 | 4 | <Card {...rest}> |
|
10 | {title && <CardHeader>{title}</CardHeader>} |
||
11 | <CardBody>{children}</CardBody> |
||
12 | </Card> |
||
13 | ); |
||
14 |