import useCollectionStore from "@/store/collections"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faUser, faPalette, faBoxArchive, faKey, } from "@fortawesome/free-solid-svg-icons"; import Link from "next/link"; import { useRouter } from "next/router"; import { useEffect, useState } from "react"; import { faCircleQuestion, faCreditCard, } from "@fortawesome/free-regular-svg-icons"; import { faGithub, faMastodon, faXTwitter, } from "@fortawesome/free-brands-svg-icons"; export default function SettingsSidebar({ className }: { className?: string }) { const LINKWARDEN_VERSION = "v2.2.0"; const { collections } = useCollectionStore(); const router = useRouter(); const [active, setActive] = useState(""); useEffect(() => { setActive(router.asPath); }, [router, collections]); return (

Account

Appearance

Archive

Password

{process.env.NEXT_PUBLIC_STRIPE ? (

Billing

) : undefined}
Linkwarden {LINKWARDEN_VERSION}

Help

GitHub

Twitter

Mastodon

); }