import { CSSProperties, useState } from "react"; import { Box, ToggleButton, ToggleButtonGroup } from "@mui/material"; import { PhotoProvider, PhotoView } from "react-photo-view"; import MonacoEditor from "react-monaco-editor"; import { OutputIntf } from "../Interfaces/OutputIntf"; export function OutputField(props: OutputIntf) { const [state, setState] = useState('tree') const { imageAddress, compiledCode, compileInformation } = props.data; return <>
{ setState(value + ""); }} aria-label="Platform" > Code Tree Log { state === 'tree' && {imageAddress == "pic/uncompiled.png" ? : } } { state == "code" && } { state == "log" && }
} const outputFieldClassCss: CSSProperties = { width: "100%", height: "100%", padding: "5% 5%", boxSizing: "border-box", }