"use client"; import React, { useState } from "react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { ShaderBackground } from "./ui/shader-background"; import { Sidebar, SidebarBody, SidebarLink } from "./ui/sidebar"; import { Home, Search, History, Settings, Download, Sparkles, Menu } from "lucide-react"; import { cn } from "@/lib/utils"; interface AppLayoutProps { children: React.ReactNode; showHero?: boolean; } export function AppLayout({ children, showHero = false }: AppLayoutProps) { const [open, setOpen] = useState(false); const pathname = usePathname(); const links = [ { label: "Home", href: "/", icon: , }, { label: "Search", href: "/search", icon: , }, { label: "History", href: "/history", icon: , }, { label: "Extensions", href: "/extensions", icon: , }, { label: "Settings", href: "/settings", icon: , }, ]; return (
{/* Sidebar */}
{open ? : }
{links.map((link, idx) => ( ))}
), }} />
{/* Main Content - Now properly positioned for mobile */}
{children}
); } const Logo = () => { return (
LinkScout ); }; const LogoIcon = () => { return (
); };