import React, { useEffect, useRef, useState } from 'react';
import moment from 'moment';
import { connect } from "react-redux";
import { Select, Modal, Form, Button } from "@douyinfe/semi-ui";

const GatewayEditModal = (props) => {
    const { dispatch, actions, user, onCancel, dataToModal } = props;
    const { edition } = actions;

    //初始化
    useEffect(() => {

    }, []);

    return (
        <Modal title={dataToModal.name}
            visible={true} destroyOnClose onCancel={onCancel}
            footer={[<Button onClick={onCancel}>关闭</Button>]}>
            <div></div>
        </Modal>
    )
}

function mapStateToProps(state) {
    const { auth, global } = state;
    return {
        user: auth.user,
        error: auth.error,
        actions: global.actions,
    };
}

export default connect(mapStateToProps)(GatewayEditModal);