import React, { useEffect, useState } from 'react';
import { Button } from 'antd';
import { VtxStaffModal } from '@vtx/modalts';

export default function Demo() {
    const [visible, setVisible] = useState(false);
    return (
        <div style={{ height: '200px' }}>
            <Button
                type="primary"
                onClick={() => {
                    setVisible(true);
                }}
            >
                暗色
            </Button>
            <VtxStaffModal
                visible={visible}
                theme="dark"
                title="DLG_055"
                id="b30156588257456c9084d5b6408e352e"
                onCancel={() => {
                    setVisible(false);
                }}
            />
        </div>
    );
}
