"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PropertyEditorTypeSelection = void 0;
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const styled_components_1 = tslib_1.__importDefault(require("styled-components"));
const DataTypePicker_1 = require("../DataTypePicker");
const PropertyEditorTypeSelection = (props) => {
    const type = Reflect.get(props.editObject, props.propertyName);
    return ((0, jsx_runtime_1.jsx)(PropertyEditorTypeSelectionRender, { children: (0, jsx_runtime_1.jsx)(DataTypePicker_1.DataTypePicker, { dataDef: type, updateCallback: (newtype) => {
                Reflect.set(props.editObject, props.propertyName, newtype);
                props.updateCallback();
            } }) }));
};
exports.PropertyEditorTypeSelection = PropertyEditorTypeSelection;
const PropertyEditorTypeSelectionRender = styled_components_1.default.div `
    display: flex;
    align-items: center;
`;
//# sourceMappingURL=PropertyEditorTypeSelection.js.map