import { Button } from 'antd';
import React, { useState } from 'react';
import { VtxThrowPointModal } from "@vtx/modals";

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