Passed
Pull Request — main (#343)
by Alejandro
03:59
created

src/utils/SimpleCard.tsx

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 14
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 0
eloc 11
mnd 0
bc 0
fnc 0
dl 0
loc 14
bpm 0
cpm 0
noi 0
c 0
b 0
f 0
ccs 2
cts 2
cp 1
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