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

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