sidebar-panels.tsx

src/components/sidebar-stack/sidebar-panels.tsx
'use client'
import type { ReactNode } from 'react'
import { SidebarStackRenderer } from './renderer'
import { useSidebarStack } from './context'
import { Paragraph } from '@/components/paragraph'
export interface SidebarPanelsProps {
panels: Record<string, ReactNode>
}
/**
* Client component that renders sidebar panels based on a registry.
* Takes pre-rendered ReactNode elements as panels, avoiding the need
* to pass functions across the server/client boundary.
* Also handles clicks on SidebarLink elements within the panels.
*/
export function SidebarPanels({ panels }: SidebarPanelsProps) {
const { push } = useSidebarStack()

Showing the first 20 lines.

Get full code

Support

Talk to the developers of this project to learn more

We have been building professional websites for big clients for over 15 years. Gallop templates and blocks is our best foundation for SEO websites and web apps.

© 2026 Web Plant Media, LLC