'use client' import './Sidebar.css' import Icon from '../Icon.png' import { openUrl } from '@tauri-apps/plugin-opener' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faCog, faDownload, faRankingStar, faServer } from '@fortawesome/free-solid-svg-icons' import { faDiscord } from '@fortawesome/free-brands-svg-icons' import { useState } from 'react' import { platform } from '@tauri-apps/plugin-os' import { getCurrentWindow } from '@tauri-apps/api/window' import { useGlobal } from '../GlobalProvider' import Image from 'next/image' import Link from 'next/link' import { usePathname } from 'next/navigation' export default function Sidebar () { const [rot, setRot] = useState(0) const [dir, setDir] = useState(1) const { setShowPopup, setPopupMode, setFadeOut, downloadProgress } = useGlobal() const pathname = usePathname() return ( ) }