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

export default function Demo() {
    const [visible, setVisible] = useState(false);
    return (
        <div style={{ height: '200px' }}>
            <Button
                type="primary"
                onClick={() => {
                    setVisible(true);
                }}
            >
                暗色
            </Button>
            <VtxWrModal
                visible={visible}
                theme="dark"
                title="苏州火车站南广场东侧公共卫生间"
                id="1588014232629563393"
                onCancel={() => {
                    setVisible(false);
                    console.log(1);
                }}
            />
        </div>
    );
}
