mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-23 02:17:11 +00:00
24 lines
496 B
TypeScript
24 lines
496 B
TypeScript
|
|
import React, { ReactElement, useState } from "react";
|
||
|
|
import { Modal, Button } from 'antd';
|
||
|
|
|
||
|
|
export const CustomModal = ({title,children, isModalVisible, setIsModalVisible, footer, closable=true}:{
|
||
|
|
isModalVisible: boolean,
|
||
|
|
closable?: boolean,
|
||
|
|
setIsModalVisible: Function,
|
||
|
|
footer?: any,
|
||
|
|
title: string,
|
||
|
|
children: ReactElement
|
||
|
|
}) => {
|
||
|
|
|
||
|
|
return (
|
||
|
|
<>
|
||
|
|
<Modal title={title} visible={isModalVisible} footer={footer}
|
||
|
|
closable={closable}
|
||
|
|
|
||
|
|
>
|
||
|
|
{children}
|
||
|
|
</Modal>
|
||
|
|
</>
|
||
|
|
);
|
||
|
|
};
|