import { jsx as _jsx } from "react/jsx-runtime";
import { ObjectListField } from './ObjectListField.js';
import { RequiredConnectionListField } from './RequiredConnectionListField.js';
import { SimpleListField } from './SimpleListField.js';
export const ListField = (props) => {
    switch (props.variable.config.metadata?.input?.type) {
        case 'object': return _jsx(ObjectListField, { ...props });
        case 'int': return _jsx(SimpleListField, { ...props, type: "int", pattern: props.variable.config.metadata?.input?.pattern });
        case 'text': return _jsx(SimpleListField, { ...props, type: "text", pattern: props.variable.config.metadata?.input?.pattern });
        case 'required-connection': return _jsx(RequiredConnectionListField, { ...props });
    }
    return undefined;
};
//# sourceMappingURL=ListField.js.map