'use client' import React from 'react' import { COLLECTIONS } from './ChunkBrowserConstants' import { getRegName } from './ChunkBrowserHelpers' interface ChunkBrowserToolbarProps { collection: string onCollectionChange: (col: string) => void selectedRegulation: string | null structInfo: { article?: string; section?: string; pages?: string } docChunkIndex: number docTotalChunks: number docChunksLength: number chunksPerPage: number setChunksPerPage: (v: number) => void splitViewActive: boolean setSplitViewActive: (v: boolean) => void fullscreen: boolean setFullscreen: (v: boolean) => void onPrev: () => void onNext: () => void onJumpTo: (idx: number) => void } export function ChunkBrowserToolbar({ collection, onCollectionChange, selectedRegulation, structInfo, docChunkIndex, docTotalChunks, docChunksLength, chunksPerPage, setChunksPerPage, splitViewActive, setSplitViewActive, fullscreen, setFullscreen, onPrev, onNext, onJumpTo, }: ChunkBrowserToolbarProps) { return (