import { forwardRef } from 'react'; import { TooltipAnchor, Button, Sidebar } from '@librechat/client'; import { useLocalize } from '~/hooks'; import { cn } from '~/utils'; const OpenSidebar = forwardRef< HTMLButtonElement, { setNavVisible: React.Dispatch>; className?: string; closeSidebarRef?: React.RefObject; } >(({ setNavVisible, className, closeSidebarRef }, ref) => { const localize = useLocalize(); const handleClick = () => { setNavVisible((prev) => { localStorage.setItem('navVisible', JSON.stringify(!prev)); return !prev; }); requestAnimationFrame(() => { closeSidebarRef?.current?.focus(); }); }; return (