import { useMount } from "ahooks";
import autoFit from "autofit.js";
import bg from "~/assets/images/public/white/bg.png";
import CenterPanel from "~/pages/Container/White/BranchOffice/components/CenterPanel";
import LeftPanel from "~/pages/Container/White/BranchOffice/components/LeftPanel";
import RightPanel from "~/pages/Container/White/BranchOffice/components/RightPanel";
import Header from "~/pages/Container/White/Share/components/Header";
import "./index.less";

function BranchOffice(props) {
  useMount(() => {
    autoFit.init({ dw: 1920, dh: 1080, el: ".white_branch_office", resize: true });
  });

  return (
    <div className="white_branch_office" style={{ backgroundImage: `url(${bg})` }}>
      <Header history={props.history} />
      <div className="white_branch_office_container">
        <LeftPanel />
        <CenterPanel />
        <RightPanel />
      </div>
    </div>
  );
}

export default BranchOffice;
