import React, { useState, forwardRef, useRef } from 'react'; import Dropdown from '../Dropdown'; import { faCaretDown } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { IconBox, IconSearch, IconDots } from '@tabler/icons'; import StyledWrapper from './StyledWrapper'; const Navbar = () => { const [modalOpen, setModalOpen] = useState(false); const menuDropdownTippyRef = useRef(); const onMenuDropdownCreate = (ref) => menuDropdownTippyRef.current = ref; const MenuIcon = forwardRef((props, ref) => { return (
); }); return (
Collections {/* */}
} placement='bottom-start'>
{ menuDropdownTippyRef.current.hide(); setModalOpen(true); }}> Create Collection
{ menuDropdownTippyRef.current.hide(); }}> Import Collection
{ menuDropdownTippyRef.current.hide(); }}> Settings
) }; export default Navbar;