mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-08 09:17:29 +03:00
14 lines
466 B
TypeScript
14 lines
466 B
TypeScript
import { Card, CardBody, CardHeader, CardProps } from 'reactstrap';
|
|
import { ReactNode } from 'react';
|
|
|
|
interface SimpleCardProps extends Omit<CardProps, 'title'> {
|
|
title?: ReactNode;
|
|
bodyClassName?: string;
|
|
}
|
|
|
|
export const SimpleCard = ({ title, children, bodyClassName, ...rest }: SimpleCardProps) => (
|
|
<Card {...rest}>
|
|
{title && <CardHeader role="heading">{title}</CardHeader>}
|
|
<CardBody className={bodyClassName}>{children}</CardBody>
|
|
</Card>
|
|
);
|