//
// Protocol steps
//

const ProtocolSteps = (props) => {
	return <div>
		<h2>Steps</h2>
		<ProtocolStep state={props.state} path={["steps"]} step={props.state.protocol.steps} onEdit={props.onEdit} onSetProperty={props.onSetProperty}/>
	</div>
};

const stepSchemaGeneric = {
	properties: {
		description: {type: "markdown"},
		data: {type: "object"},
		command: {type: "string"}
	}
};

const ProtocolStep = (props) => {
	const {state, path, step} = props;
	// console.log("path: "+path.join("."))

	const step