github.com/MontFerret/ferret@v0.18.0/e2e/pages/dynamic/components/layout.js (about)

     1  const e = React.createElement;
     2  const NavLink = ReactRouterDOM.NavLink;
     3  
     4  export default function Layout({ children }) {
     5      return e("div", { id: "layout"}, [
     6          e("nav", { className: "navbar navbar-expand-md navbar-dark bg-dark mb-4", id: "navbar" }, [
     7              e(NavLink, { className: "navbar-brand", to: "/"}, "Ferret"),
     8              e("button", { className: "navbar-toggler", type: "button"}, [
     9                  e("span", { className: "navbar-toggler-icon" })
    10              ]),
    11              e("div", { className: "collapse navbar-collapse" }, [
    12                  e("ul", { className: "navbar-nav mr-auto" }, [
    13                      e("li", { className: "nav-item"}, [
    14                          e(NavLink, { className: "nav-link nav-link-forms", to: "/forms" }, "Forms")
    15                      ]),
    16                      e("li", { className: "nav-item"}, [
    17                          e(NavLink, { className: "nav-link nav-link-navigation", to: "/navigation" }, "Navigation")
    18                      ]),
    19                      e("li", { className: "nav-item"}, [
    20                          e(NavLink, { className: "nav-link nav-link-events", to: "/events" }, "Events")
    21                      ]),
    22                      e("li", { className: "nav-item"}, [
    23                          e(NavLink, { className: "nav-link nav-link-iframe", to: "/iframe" }, "iFrame")
    24                      ])
    25                  ])
    26              ])
    27          ]),
    28          e("main", { className: "container"}, children)
    29      ])
    30  }