import React from "react";
import { Nav, Navbar, Button } from "react-bootstrap";
import { IconName } from "@fortawesome/fontawesome-svg-core";
import { LinkContainer } from "react-router-bootstrap";
import { Link, useLocation } from "react-router-dom";
import { Icon } from "src/components/Shared";
interface IMenuItem {
text: string;
href: string;
icon: IconName;
}
const menuItems: IMenuItem[] = [
{
icon: "play-circle",
text: "Scenes",
href: "/scenes"
},
{
href: "/scenes/markers",
icon: "map-marker-alt",
text: "Markers"
},
{
href: "/galleries",
icon: "image",
text: "Galleries"
},
{
href: "/performers",
icon: "user",
text: "Performers"
},
{
href: "/studios",
icon: "video",
text: "Studios"
},
{
href: "/tags",
icon: "tag",
text: "Tags"
}
];
export const MainNavbar: React.FC = () => {
const location = useLocation();
const path =
location.pathname === "/performers"
? "/performers/new"
: location.pathname === "/studios"
? "/studios/new"
: null;
const newButton =
path === null ? (
""
) : (
);
return (
);
};