import React, { Component } from "react"; import Hardware from "./Hardware"; import Requirement from "./Requirement"; import BlocklyWindow from "../Blockly/BlocklyWindow"; import Grid from "@material-ui/core/Grid"; import Typography from "@material-ui/core/Typography"; import ReactMarkdown from "react-markdown"; class Instruction extends Component { render() { var step = this.props.step; var isHardware = step.hardware && step.hardware.length > 0; var areRequirements = step.requirements && step.requirements.length > 0; return (
{/* {step.headline} */} {step.text} {isHardware ? : null} {areRequirements > 0 ? ( ) : null} {step.media ? ( step.media.picture ? (
) : step.media.youtube ? ( /*16:9; width: 800px; height: width/16*9=450px*/