import {Modal, ModalProps} from "antd";
import React, {FC} from "react";
import "./Modal.scss";
import {ReactComponent as CloseIcon} from "./close.svg";

export interface StarshipModalProps {}

const StarshipModal: FC<StarshipModalProps & ModalProps> = props => {
    const {className, transitionName = "", ...ModalProp} = props;

    return (
        <Modal
            {...ModalProp}
            transitionName={transitionName}
            closeIcon={<CloseIcon />}
            className={`starship-Modal ${className}`}
        />
    );
};

export default StarshipModal;
