"use client"; import Link from "next/link"; import { usePathname, useRouter } from "next/navigation"; import React, { useEffect, useState } from "react"; import { CurrencyToggle, MoodToggle } from "./currency-toggle"; const navItems = [ { href: "/app", label: "Dashboard" }, { href: "/app/connect", label: "Accounts" }, { href: "/transactions", label: "Transactions" }, { href: "/rules", label: "Rules" }, { href: "/exports", label: "Exports" }, { href: "/tax", label: "Tax" }, { href: "/settings", label: "Settings" } ]; type AppShellProps = { title: string; subtitle?: string; children: React.ReactNode; }; export function AppShell({ title, subtitle, children }: AppShellProps) { const pathname = usePathname(); const router = useRouter(); const onLogout = () => { localStorage.removeItem("ledgerone_token"); localStorage.removeItem("ledgerone_user_id"); router.push("/login"); }; return (
{/* Sidebar */} {/* Main Content */}
{/* Breadcrumbs or Title */}

{title}

{subtitle &&

{subtitle}

}
{children}
); }