"use client" import { useState } from "react" import { Button } from "@/components/ui/button" import { Cog6ToothIcon, XMarkIcon } from "@heroicons/react/24/outline" export function RightSidebarToggle() { const [isVisible, setIsVisible] = useState(false) const toggleSidebar = () => { setIsVisible(!isVisible) // Toggle classes for the right sidebar const sidebar = document.querySelector(".right-sidebar") const overlay = document.querySelector(".right-sidebar-overlay") const content = document.querySelector(".main-content") if (sidebar) { sidebar.classList.toggle("visible") } if (overlay) { overlay.classList.toggle("visible") } if (content && window.innerWidth <= 1024) { content.classList.toggle("mobile-adjusted-content") } } return ( <> {/* Mobile toggle button */}