{backTo && (
{backTo.label}
)}
{title}
{description && ({description}
)}{children}
import { Link } from "@tanstack/react-router"; import { ArrowLeftIcon } from "@phosphor-icons/react"; import type { ReactNode } from "react"; import type { SessionUser } from "@/lib/api"; import { AppSidebar } from "@/components/AppSidebar"; import { cn } from "@/lib/utils"; interface AppShellProps { user: SessionUser; title: string; description?: string; backTo?: { to: string; label: string }; className?: string; children: ReactNode; } export function AppShell({ user, title, description, backTo, className, children, }: AppShellProps) { return (
{description}
)}{description}
)}