import { Card, CardBody, CardFooter, CardHeader } from '@heroui/card'; import clsx from 'clsx'; import { title } from '../primitives'; export interface ContainerProps { title: string; tag?: React.ReactNode; action: React.ReactNode; enableSwitch: React.ReactNode; children: React.ReactNode; } export interface DisplayCardProps { showType?: boolean; onEdit: () => void; onEnable: () => Promise; onDelete: () => Promise; onEnableDebug: () => Promise; } const DisplayCardContainer: React.FC = ({ title: _title, action, tag, enableSwitch, children, }) => { return ( {tag && (
{tag}
)}

{_title}

{enableSwitch}
{children} {action}
); }; export default DisplayCardContainer;