import ThemeToggle from "@/components/theme-toggle"; import { Link, useLocation } from "react-router-dom"; import { Home, Settings } from "lucide-react"; import { Button } from "@/components/ui/button"; export default function Layout({ children, sidebarContent, }: { children: React.ReactNode; sidebarContent?: React.ReactNode; }) { const location = useLocation(); return (
{/* sidebar - fixed width */}

The Shape of Sound

{sidebarContent || null}
{location.pathname !== "/settings" && ( )} {location.pathname !== "/" && ( )}
{/* canvas area - flex-1 */}
{children}
); }