import React, {useState} from "react"; import {useMarkdownTemplate} from "../../utils/queries/template-queries"; const TemplatedEditorComponent = ({ variable, value, namespace, onContentChanged }) => { if(variable.type.base_type === "string") { return (
onContentChanged(variable.name, e.target.value)} />
); } if (variable.type.base_type === 'markdown') { return(