import { makeStyles } from "@material-ui/core/styles" import Typography from "@material-ui/core/Typography" import React from "react" import * as TypesGen from "../../api/typesGenerated" import { WorkspaceStatus } from "../../util/workspace" import { WorkspaceSchedule } from "../WorkspaceSchedule/WorkspaceSchedule" import { WorkspaceSection } from "../WorkspaceSection/WorkspaceSection" import { WorkspaceStatusBar } from "../WorkspaceStatusBar/WorkspaceStatusBar" export interface WorkspaceProps { organization?: TypesGen.Organization workspace: TypesGen.Workspace template?: TypesGen.Template handleStart: () => void handleStop: () => void handleRetry: () => void handleUpdate: () => void workspaceStatus: WorkspaceStatus } /** * Workspace is the top-level component for viewing an individual workspace */ export const Workspace: React.FC = ({ workspace, handleStart, handleStop, handleRetry, handleUpdate, workspaceStatus, }) => { const styles = useStyles() return (
) } /** * Temporary placeholder component until we have the sections implemented * Can be removed once the Workspace page has all the necessary sections */ const Placeholder: React.FC = () => { return (
Not yet implemented
) } export const useStyles = makeStyles(() => { return { root: { display: "flex", flexDirection: "column", }, horizontal: { display: "flex", flexDirection: "row", }, vertical: { display: "flex", flexDirection: "column", }, sidebarContainer: { display: "flex", flexDirection: "column", flex: "0 0 350px", }, timelineContainer: { flex: 1, }, } })