// frontend/src/Layout.jsx import React, { useState } from "react"; import { Link } from "react-router-dom"; import { createPageUrl } from "./utils"; import { LayoutDashboard, History as HistoryIcon, ChevronLeft, Sparkles, } from "lucide-react"; import { cn } from "@/lib/utils"; // Import logo - Vite will process this and handle the path correctly // For production, the logo should be in frontend/public/logo.png // Vite will copy it to dist/logo.png during build const logoPath = "/logo.png"; export default function Layout({ children, currentPageName }) { const [collapsed, setCollapsed] = useState(false); const navItems = [ { name: "Dashboard", icon: LayoutDashboard, page: "Dashboard" }, { name: "History", icon: HistoryIcon, page: "History" }, ]; return (
{/* Sidebar */} {/* Main Content */}
{children}
); }