const UNIVERSAL_WORKSPACE_ID = "universalworkspaceid";
const WORKSPACE_COMPONENTS_NAME = "workspaceComponents";
function addVariableToMain({id = null, variable = {name: "", type: "String", value: ""}, afterComponentWithId = null}) {
let html = ``;
let code = mountCodeFromVariable(variable);
html += `
`;
html += ` `;
html += `
`;
html += `
`;
html += `
${code}
`;
html += ` `;
html += `
`;
html += ` `;
html += `
`;
html += `
`;
html += `
`;
if (afterComponentWithId == null) {
$main.append(html);
} else {
$(html).insertAfter(`#workspaceVariableDiv${afterComponentWithId}`);
}
}
function deleteVariableFromMain(id = null) {
$(`#workspaceVariableDiv${id}`).remove();
}