// Modal.tsx import React from "react"; import { Modal as BootstrapModal } from "react-bootstrap"; import classNames from "classnames"; // optional: for cleaner class merging interface CustomModalProps { show: boolean; header: boolean; centered: boolean; classname: string; fullscreen?: true | "sm" | "md" | "lg" | "xl" | "xxl" | "xm"; onHide: () => void; title?: string; children: React.ReactNode; position?: "left" | "right" | "center" | "top"; backdrop?: boolean | "static"; keyboard?: boolean; } const Modal: React.FC = ({ show, header, fullscreen = true, centered = false, classname = "", onHide, title = "Modal", children, position = "center", backdrop = true, keyboard = true, }) => { const positionClass = position === "left" ? "left-slide-modal" : position === "right" ? "right-slide-modal" : position === "top" ? "top-slide-modal" : ""; return ( <> {header && ( {title} )} {children} ); }; export default Modal;