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

export default function Demo() {
    const [visible, setVisible] = useState(false);
    return (
        <div style={{ height: '200px' }}>
            <Button
                type="primary"
                onClick={() => {
                    setVisible(true);
                }}
            >
                暗色
            </Button>
            <VtxRoadModal
                visible={visible}
                theme="dark"
                title="星塘街立交南向北道路"
                id="713489f2b25e47128cd32aef67f3fa0b"
                onCancel={() => {
                    setVisible(false);
                }}
            />
        </div>
    );
}
