forked from Gitlink/forgeplus-react
20 lines
384 B
JavaScript
20 lines
384 B
JavaScript
import React from 'react';
|
|
import { Modal } from 'antd';
|
|
import './Index.scss';
|
|
|
|
function Modals({title,children,btn,onCancel,visible}) {
|
|
return(
|
|
<Modal
|
|
visible={visible}
|
|
onCancel={onCancel}
|
|
title={title}
|
|
width={"520px"}
|
|
className="deleteBox"
|
|
footer={btn}
|
|
centered={true}
|
|
>
|
|
{children}
|
|
</Modal>
|
|
)
|
|
}
|
|
export default Modals; |