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

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