import { cn } from "@/lib/utils"; import { NavLink } from "react-router-dom"; import { ProjectSelectBox } from "./ProjectSelectBox"; import { ThemeSelectBox } from "./ThemeSelectBox"; import { LanguageSelectBox } from "./LanguageSelectBox"; import { UserProfileBox } from "./UserProfileBox"; import { useSettingsStore } from "@/store/useSettingsStore"; import Logo from "@/assets/react.svg"; const menuItems = [ { name: "Feedback", path: "/feedbacks", type: "feedback" }, { name: "Issue", path: "/issues", type: "issue" }, ]; interface HeaderProps { className?: string; } export function Header({ className }: HeaderProps) { const { projectId, channelId } = useSettingsStore(); const getPath = (type: string, basePath: string) => { if (type === "issue") { return `/projects/${projectId}${basePath}`; } return `/projects/${projectId}/channels/${channelId}${basePath}`; }; const homePath = `/projects/${projectId}`; return (
{/* Left Section */}
Logo
{/* Middle Navigation */} {/* Right Section */}
); }