import { Card, CardBody, CardHeader, Divider } from "@nextui-org/react"; import { CardProps as NextUICardProps } from "@nextui-org/react"; import React from "react"; interface CustomBoxProps { children: React.ReactNode; preTitle?: string; subTitle?: string; title?: string; } export const CustomBox = ({ children, preTitle, subTitle, title, ...props }: CustomBoxProps & NextUICardProps & React.HTMLAttributes) => { return ( {(preTitle || subTitle || title) && ( <> {preTitle && (

{preTitle}

)} {subTitle && {subTitle}} {title &&

{title}

}
)} {children}
); };