import React, { forwardRef, useRef } from 'react'; import Collections from './Collections'; import Navbar from '../Navbar'; import Dropdown from '../Dropdown'; import { IconBox, IconSearch, IconDots } from '@tabler/icons'; import StyledWrapper from './StyledWrapper'; const Sidebar = ({collections, actions, dispatch, activeRequestTabId}) => { const menuDropdownTippyRef = useRef(); const onMenuDropdownCreate = (ref) => menuDropdownTippyRef.current = ref; const MenuIcon = forwardRef((props, ref) => { return (
); }); return (
Collections
} placement='bottom-start'>
{ menuDropdownTippyRef.current.hide(); }}> Create Collection
{ menuDropdownTippyRef.current.hide(); }}> Settings
); }; export default Sidebar;