import { Button } from 'antd';
import React, { useState } from 'react';
import VtxDefaultModal from '../index';

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