'use client';
import { jsx as _jsx } from "react/jsx-runtime";
import { PanelLeft } from 'lucide-react';
import { useSidebar } from '../../ui/sidebar';
import { Button } from '../../ui/button';
import { cn } from '../../../lib/utils';
export function SidebarCollapseToggle({ className }) {
    const { toggleSidebar, open } = useSidebar();
    const label = open ? 'Collapse sidebar' : 'Expand sidebar';
    return (_jsx("div", { className: cn('flex', className), children: _jsx(Button, { "data-testid": "sidebar-collapse-toggle", variant: "ghost", size: "icon", className: "size-7 cursor-pointer group-data-[collapsible=icon]:size-8!", onClick: toggleSidebar, "aria-label": label, children: _jsx(PanelLeft, { className: "size-4" }) }) }));
}
