import { Card, CardBody, CardFooter, CardHeader } from '@heroui/card'; import { useLocalStorage } from '@uidotdev/usehooks'; import clsx from 'clsx'; import key from '@/const/key'; export interface ContainerProps { title: string; tag?: React.ReactNode; action: React.ReactNode; enableSwitch: React.ReactNode; children: React.ReactNode; className?: string; // Add className prop } export interface DisplayCardProps { showType?: boolean; onEdit: () => void; onEnable: () => Promise; onDelete: () => Promise; onEnableDebug: () => Promise; } const DisplayCardContainer: React.FC = ({ title: _title, action, tag, enableSwitch, children, className, }) => { const [backgroundImage] = useLocalStorage(key.backgroundImage, ''); const hasBackground = !!backgroundImage; return ( {tag && (
{tag}
)}
{_title}
{enableSwitch}
{children} {action}
); }; export default DisplayCardContainer;