Files
stream.graff.tech-new/client/src/components/ModalWrapper.tsx
T

33 lines
650 B
TypeScript

import ModalHeader from "./ModalHeader";
import clsx from "clsx";
interface ModalWrapperProps {
children: React.ReactNode;
title?: string;
leftButton?: React.ReactNode;
className?: string;
}
function ModalWrapper({
children,
title,
leftButton,
className,
}: ModalWrapperProps) {
return (
<div
className={clsx(
"bg-white 2xl:rounded-[2.222vw] rounded-[32px] relative",
className
)}
>
<ModalHeader title={title} leftButton={leftButton} />
<div className={clsx("2xl:p-[1.389vw] p-5", !title && "!pt-0")}>
{children}
</div>
</div>
);
}
export default ModalWrapper;