import { CodeIcon, CreditCardIcon, KeyIcon, UserGroupIcon, UserIcon } from "@heroicons/react/solid"; import Link from "next/link"; import { useRouter } from "next/router"; import classNames from "@lib/classNames"; export default function SettingsShell(props) { const router = useRouter(); const tabs = [ { name: "Profile", href: "/settings/profile", icon: UserIcon, current: router.pathname == "/settings/profile", }, { name: "Security", href: "/settings/security", icon: KeyIcon, current: router.pathname == "/settings/security", }, { name: "Embed", href: "/settings/embed", icon: CodeIcon, current: router.pathname == "/settings/embed" }, { name: "Teams", href: "/settings/teams", icon: UserGroupIcon, current: router.pathname == "/settings/teams", }, { name: "Billing", href: "/settings/billing", icon: CreditCardIcon, current: router.pathname == "/settings/billing", }, ]; return (