Files
Web-Frontend/client/src/components/layout/Canvas/Canvas.jsx
T

24 lines
778 B
React
Raw Normal View History

// This Canvas component will be used to dynamically populate
// the main canvas section of the web App with a default state
// of 'WidgetCanvas'
import { useState } from "react";
import { Box } from "@chakra-ui/react";
import CanvasHeader from "./CanvasHeader";
import WidgetCanvas from "./views/WidgetCanvas";
2025-07-21 14:27:53 -07:00
// import MapCanvas from "./views/MapCanvas";
// import AdminCanvas from "./views/AdminCanvas";
export default function Canvas({ view }) {
// const [view, setView] = useState("widget");
return (
<Box height="100%" width="100%">
<CanvasHeader />
{view === "widget" && <WidgetCanvas />}
2025-07-21 14:27:53 -07:00
{/* {view === "map" && <MapCanvas />} */}
{/* {view === "admin" && <AdminCanvas />} */}
</Box>
);
}