import Management from "../management";
import { RequireAuth } from "../auth/requireAuth";
import Header from "../header/index";
import { SubHeader } from "../subHeader";
import React from "react";
export const Layout = ({
  brandCode,
  selectedModuleName,
  selectedEntityName,
  children,
}) => {
  return (
    <RequireAuth>
      <Header
        brandCode={brandCode}
        selectedModuleName={selectedModuleName}
        selectedEntityName={selectedEntityName}
      ></Header>
      <SubHeader
        brandCode={brandCode}
        selectedModuleName={selectedModuleName}
        selectedEntityName={selectedEntityName}
      ></SubHeader>
      <Management
        brandCode={brandCode}
        selectedModuleName={selectedModuleName}
        selectedEntityName={selectedEntityName}
        children={children}
      ></Management>
    </RequireAuth>
  );
};
