PluginProbe
Tableberg – Simple Gutenberg Table Block / 1.1.5
Tableberg – Simple Gutenberg Table Block v1.1.5
1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 trunk 0.0.2 0.2.1 0.3.2 0.3.3 0.4.1 0.5.0 0.5.1 0.5.2 0.5.3 0.5.4 0.5.5 0.5.6 0.5.7 All 42 releases
tableberg / admin / src / containers / AdminMenuContainer.jsx

AdminMenuContainer.jsx in Tableberg – Simple Gutenberg Table Block 1.1.5, at admin/src/containers/AdminMenuContainer.jsx

39 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import React from "react";
2 import MenuHeader from "../components/MenuHeader";
3 import Content from "../components/Content";
4 import { useState } from "react";
5 // import UpsellModalSettingsMenu from '$Components/UpsellModalSettingsMenu';
6
7 /**
8 * Container for admin menu.
9 *
10 * @return {JSX.Element} container component
11 * @function Object() { [native code] }
12 */
13 function AdminMenuContainer() {
14 const url = new URL(window.location.href);
15 const route = url.searchParams.get("route");
16
17 const [currentRoutePath, setCurrentRoutePath] = useState(
18 route ?? "welcome"
19 );
20 return (
21 <div className={"tableberg-admin-menu-container"}>
22 {/* <UpsellModalSettingsMenu /> */}
23 <MenuHeader
24 currentRoutePath={currentRoutePath}
25 setCurrentRoutePath={setCurrentRoutePath}
26 />
27 <Content
28 currentRoutePath={currentRoutePath}
29 setCurrentRoutePath={setCurrentRoutePath}
30 />
31 </div>
32 );
33 }
34
35 /**
36 * @module AdminMenuContainer
37 */
38 export default AdminMenuContainer;
39