'use client' import './Sidebar.css' import Icon from '@/assets/Icon.png' import { openUrl } from '@tauri-apps/plugin-opener' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faCog, faDownload, faGamepad, faHexagonNodes } from '@fortawesome/free-solid-svg-icons' import { faDiscord } from '@fortawesome/free-brands-svg-icons' import { platform } from '@tauri-apps/plugin-os' import { useGlobal } from '../GlobalProvider' import Image from 'next/image' import Link from 'next/link' import { usePathname, useSearchParams } from 'next/navigation' import { getCurrentWindow } from '@tauri-apps/api/window' export default function Sidebar () { const { normalConfig, getListOfGames, setShowPopup, setPopupMode, setFadeOut, downloadProgress } = useGlobal() const pathname = usePathname() const params = useSearchParams() return ( ) }