mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-24 01:41:42 +02:00
29 lines
684 B
TypeScript
29 lines
684 B
TypeScript
import { type ReactNode } from "react";
|
|
import { cn } from "@/lib/utils";
|
|
import { SidebarNavExpandedProvider } from "./SidebarNavItem";
|
|
|
|
/**
|
|
* Content adapter for a contextual sidebar. Depending on the route, Layout
|
|
* either places it inside the primary SidebarShell or mounts it as an adjacent
|
|
* secondary rail.
|
|
*/
|
|
export function SecondarySidebar({
|
|
children,
|
|
className,
|
|
}: {
|
|
children: ReactNode;
|
|
className?: string;
|
|
}) {
|
|
return (
|
|
<div
|
|
data-secondary-sidebar=""
|
|
className={cn(
|
|
"h-full w-full min-w-0 overflow-hidden",
|
|
className,
|
|
)}
|
|
>
|
|
<SidebarNavExpandedProvider>{children}</SidebarNavExpandedProvider>
|
|
</div>
|
|
);
|
|
}
|