import { useState } from "react"; import NavigationSidebar from "./components/NavigationSidebar"; import ProductManagement from "./components/ProductManagement"; import { Toaster } from "./components/ui/sonner"; export default function App() { const [currentPage, setCurrentPage] = useState("product-management"); const handleNavigate = (path: string) => { setCurrentPage(path); }; const renderPage = () => { switch (currentPage) { case "product-management": return ; default: return ; } }; return (
{/* Sidebar Navigation */} {/* Main Content */}
{renderPage()}
); }