- clis/lepton (@settlekit/lepton-cli): operator CLI (deploy/config/settlements/lineage/proof) on real domain logic - apps/agent-console: Next.js agentic-commerce surface, real domain logic (agent-services + citation-toll + attribution) - apps/stream-meter: Next.js live per-second streaming meter (RFB 4) on real @settlekit/streaming - packages/payouts-cpn (@settlekit/payouts-cpn): Circle CPN fiat off-ramp, credential-gated + local provider + tests - common: make ids.ts isomorphic (Web Crypto) so domain packages bundle into client components - wire clis/lepton into pnpm-workspace + vitest; 1031 tests, typecheck, all next builds green
43 lines
1.2 KiB
TypeScript
43 lines
1.2 KiB
TypeScript
"use client";
|
|
|
|
import Link from "next/link";
|
|
import { usePathname } from "next/navigation";
|
|
import { NAV_GROUPS } from "@/lib/nav";
|
|
|
|
function isActive(pathname: string, href: string): boolean {
|
|
if (href === "/") return pathname === "/";
|
|
return pathname === href || pathname.startsWith(`${href}/`);
|
|
}
|
|
|
|
export function Sidebar() {
|
|
const pathname = usePathname();
|
|
|
|
return (
|
|
<aside className="sidebar">
|
|
<div className="sidebar-brand">
|
|
<span className="sidebar-logo">◆</span>
|
|
<span>SettleKit · Agent Console</span>
|
|
</div>
|
|
<nav className="sidebar-nav">
|
|
{NAV_GROUPS.map((group) => (
|
|
<div className="nav-group" key={group.title}>
|
|
<div className="nav-group-title">{group.title}</div>
|
|
{group.items.map((item) => (
|
|
<Link
|
|
key={item.href}
|
|
href={item.href}
|
|
className={isActive(pathname, item.href) ? "nav-link active" : "nav-link"}
|
|
>
|
|
{item.label}
|
|
</Link>
|
|
))}
|
|
</div>
|
|
))}
|
|
</nav>
|
|
<div className="sidebar-footer">
|
|
<span>Agents that discover, pay via x402, cite & prove · USDC native</span>
|
|
</div>
|
|
</aside>
|
|
);
|
|
}
|