"use client" import Link from "next/link" import { CircleHelp, Moon, Sun } from "lucide-react" import { usePathname } from "next/navigation" import { useEffect, useState } from "react" const links = [ ["Workspace", "/"], ["Catalog", "/easy-png-tools/list-tools"], ["Gradient", "/easy-png-tools/gradient"], ["Background remover", "/easy-png-tools/background-remover"], ] as const export function TopBar({ section = "WORKSPACE", status = "LOCAL MODE / READY" }: { section?: string; status?: string }) { const pathname = usePathname() const [dark, setDark] = useState(false) useEffect(() => { const stored = window.localStorage.getItem("ep-theme") const isDark = stored === "dark" setDark(isDark) document.documentElement.classList.toggle("dark-mode", isDark) }, []) const toggleTheme = () => { const next = !dark setDark(next) document.documentElement.classList.toggle("dark-mode", next) window.localStorage.setItem("ep-theme", next ? "dark" : "light") } return
EPeasy-png-tools/ {section}
{status}
/
} export default TopBar