Total Complexity | 0 |
Complexity/F | 0 |
Lines of Code | 15 |
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 | import { ReactNode } from 'react'; |
||
4 | |||
5 | interface SimpleCardProps extends Omit<CardProps, 'title'> { |
||
6 | title?: ReactNode; |
||
7 | } |
||
8 | |||
9 | 8 | export const SimpleCard = ({ title, children, ...rest }: SimpleCardProps) => ( |
|
10 | 8 | <Card {...rest}> |
|
11 | {title && <CardHeader>{title}</CardHeader>} |
||
12 | <CardBody>{children}</CardBody> |
||
13 | </Card> |
||
14 | ); |
||
15 |