import { Modal } from 'antd'; import React from 'react'; type ViewModalProps = { content?: string; title: string; open: boolean; onCancel: () => void; }; const ViewCodeModal: React.FC = (props) => { const { title, open, onCancel, content } = props || {}; if (!open) { return null; } return (
{content}
); }; export default ViewCodeModal;