mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-24 16:53:45 +03:00
14 lines
369 B
TypeScript
14 lines
369 B
TypeScript
|
import { CardProps } from 'reactstrap/lib/Card';
|
||
|
import { Card, CardBody, CardHeader } from 'reactstrap';
|
||
|
|
||
|
interface SimpleCardProps extends CardProps {
|
||
|
title?: string;
|
||
|
}
|
||
|
|
||
|
export const SimpleCard = ({ title, children, ...rest }: SimpleCardProps) => (
|
||
|
<Card {...rest}>
|
||
|
{title && <CardHeader>{title}</CardHeader>}
|
||
|
<CardBody>{children}</CardBody>
|
||
|
</Card>
|
||
|
);
|