import { Menu, Transition } from "@headlessui/react"; import React, { Fragment } from "react"; import classNames from "classnames"; /* -------------------------------------------------------------------------- */ /* Components */ /* -------------------------------------------------------------------------- */ import ContextMenuAction from "./ContextMenuAction"; import ContextMenu from "./ContextMenu"; import { Button } from "./Button/Button"; /* -------------------------------------------------------------------------- */ /* Icons */ /* -------------------------------------------------------------------------- */ import { ReactComponent as SVGFavoriteOutlined } from "assets/svg/favorite-outlined.svg"; import { ReactComponent as SVGHamburger } from "assets/svg/hamburger.svg"; import { ReactComponent as SVGFolder } from "assets/svg/folder.svg"; import { ReactComponent as SVGFile } from "assets/svg/file.svg"; import { ReactComponent as SVGEye } from "assets/svg/eye.svg"; type Props = React.ComponentPropsWithoutRef<"div">; const Navbar = (props: Props) => { return (
{({ active }) => ( CREATE NEW )} {({ active }) => ( {/* Dropdown Menu start My library */} console.log("My publications")} icon={} > console.log("My Favorites")} icon={} > console.log("My Collections")} icon={} > console.log("Recent Viewed")} icon={} > {/* Dropdown Menu End My library */} )} {({ active }) => ( {/* Dropdown Menu About - start - */} console.log("About Freeland")} > console.log("Contact Us")} > console.log("Help")} > {/* Dropdown Menu About - End - */} )}
); }; export default Navbar;