import { Layout } from "antd";
import { useEffect, useRef } from "react";
import { MapStage } from "../../mapStage";
import Tools from "./Tools";

import "./index.less";

const { Header, Footer, Sider, Content } = Layout;

const Plot = () => {

  const mapStageRef = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const map = new MapStage(mapStageRef.current!);
    map.init();
  });

  return (
    <>
      <div className="map-stage" ref={mapStageRef}></div>
      <div className="tools-properties"></div>
      <div className="tools-area">
        <Tools />
      </div>
    </>
  );
};

export default Plot;