import React from "react"; import { useRouter } from "next/router"; import Link from "next/link"; const PROFILE_LINKS: Array<{ label: string; href: string; }> = [ { label: "Profile", href: `/me/profile`, }, { label: "Activity", href: `/me/profile/activity`, }, { label: "Preferences", href: `/me/profile/preferences`, }, ]; export const ProfileSettingsSidebar = () => { const router = useRouter(); return (
My Account
{PROFILE_LINKS.map((link) => (
{link.label}
))}
); };