import { useContext } from "react";
import Layout from "./Layout";
import LayoutContext from "./LayoutContext";
import Sidebar from "./Sidebar";
import Nav from "./Nav";
import Main from "./Main";
import Content from "./Content";
import Header from "./Header";

/* @ts-ignore */
Layout.Main = Main;
/* @ts-ignore */

Layout.Sidebar = Sidebar;
/* @ts-ignore */

Layout.Nav = Nav;
/* @ts-ignore */

Layout.Content = Content;
/* @ts-ignore */

Layout.Header = Header;
export var useLayout = function useLayout() {
  return useContext(LayoutContext);
};
export default Layout;