'use client'; import { Fragment, type ReactNode } from 'react'; import { Transition } from '@headlessui/react'; import { XCircleIcon } from '@/components/icons/Icons'; import { useReaderSidebarBounds } from '@/hooks/useReaderSidebarBounds'; interface ReaderSidebarShellProps { isOpen: boolean; onClose: () => void; ariaLabel: string; title: string; subtitle?: string; children: ReactNode; headerActions?: ReactNode; footer?: ReactNode; bodyClassName?: string; panelClassName?: string; } export function ReaderSidebarShell({ isOpen, onClose, ariaLabel, title, subtitle, children, headerActions, footer, bodyClassName = 'flex-1 overflow-y-auto px-4 py-4', panelClassName = '', }: ReaderSidebarShellProps) { const bounds = useReaderSidebarBounds(isOpen); return (
{children}
{footer}
); }