diff --git a/components/navigation.tsx b/components/navigation.tsx index dd61947..ba65f19 100644 --- a/components/navigation.tsx +++ b/components/navigation.tsx @@ -2,8 +2,9 @@ import { Input } from "@/components/ui/input" import { ScrollArea } from "@/components/ui/scroll-area" -import { ChevronDown, ChevronRight } from 'lucide-react' +import { ChevronDown, ChevronRight, Menu } from 'lucide-react' import { useEffect, useState } from "react" +import { Button } from "@/components/ui/button" type NavItem = { name: string @@ -20,18 +21,19 @@ type CategoryData = { [key: string]: SubCategory[] } -export function Navigation() { +export default function Component() { const [searchTerm, setSearchTerm] = useState("") const [activeCategory, setActiveCategory] = useState("all") const [activeSubCategory, setActiveSubCategory] = useState("all") const [data, setData] = useState({}) const [filteredItems, setFilteredItems] = useState([]) const [expandedCategories, setExpandedCategories] = useState([]) + const [isSidebarOpen, setIsSidebarOpen] = useState(false) useEffect(() => { async function loadData() { try { - const response = await fetch('/api/load-yaml-data'); + const response = await fetch('https://aps.icu/api/load-yaml-data'); const yamlData = await response.json(); setData(yamlData); } catch (error) { @@ -73,12 +75,20 @@ export function Navigation() { } return ( -
+
+ {/* Left Sidebar Navigation */} -