on ecb82dc help sign in
urbit.org/components/Sidebar.js
21 lines 541 B history raw
1import { useState } from "react";
2import MenuTray from "./MenuTray";
4export default function Sidebar(props) {
5 const [isOpen, setTray] = useState(false);
6 return (
7 <>
8 <div className="hidden md:flex flex-col h-full sticky top-8">
9 <div className="overflow-y-auto">
10 {props.children}
11 <div className="pb-32" />
12 </div>
13 </div>
15 <MenuTray isOpen={isOpen} setTray={setTray} search={props.search}>
16 {props.children}
17 <div className="pt-64" />
18 </MenuTray>
19 </>
20 );