import React from "react";
import { Modal } from "react-bootstrap";
import "../../scss/components/Modal.scss";
interface IPropsModal {
show: boolean;
content: JSX.Element;
footer?: JSX.Element;
title: string;
isTitleBold?: boolean;
handleHide: () => void;
size?: "lg" | "xl" | "sm";
dialogClassName?: string;
}
export default class ModalComponent extends React.Component {
props: IPropsModal = {
show: false,
content: ,
handleHide: (): void => {},
title: "Title desc",
isTitleBold: false,
size: "sm",
dialogClassName: ""
};
constructor(props: IPropsModal) {
super(props);
}
render(): JSX.Element {
return (
{this.props.isTitleBold === true ? {this.props.title} : this.props.title}
{this.props.content}
{this.props.footer}
);
}
}