import React from "react" import Link from "next/link" import { usePathname } from "next/navigation" import { useAccount } from "@/lib/providers/jazz-provider" import { cn } from "@/lib/utils" import { LaIcon } from "@/components/custom/la-icon" import { PersonalLinkLists } from "@/lib/schema/personal-link" export const LinkSection: React.FC<{ pathname: string }> = ({ pathname }) => { const { me } = useAccount({ root: { personalLinks: [] } }) const linkCount = me?.root.personalLinks?.length || 0 const isActive = pathname === "/links" if (!me) return null return (
Links {linkCount > 0 && {linkCount}}
{label}