diff --git a/website/src/components/sidebar.js b/website/src/components/sidebar.js index 29bd122d6..df3bd9a67 100644 --- a/website/src/components/sidebar.js +++ b/website/src/components/sidebar.js @@ -4,8 +4,26 @@ import classNames from 'classnames' import { window } from 'browser-monads' import Link from './link' +import Dropdown from './dropdown' import classes from '../styles/sidebar.module.sass' +const DropdownNavigation = ({ items, defaultValue }) => { + return ( +
+ + + {items.map((section, i) => + section.items.map(({ text, url }, j) => ( + + )) + )} + +
+ ) +} + const Sidebar = ({ items, pageMenu, slug }) => { const [initialized, setInitialized] = useState(false) const [activeSection, setActiveSection] = useState(null) @@ -27,6 +45,7 @@ const Sidebar = ({ items, pageMenu, slug }) => { return ( + {items.map((section, i) => (