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 (
) } interface LinkSectionHeaderProps { linkCount: number isActive: boolean } const LinkSectionHeader: React.FC = ({ linkCount, isActive }) => (

Links {linkCount > 0 && {linkCount}}

) interface ListProps { personalLinks: PersonalLinkLists } const List: React.FC = ({ personalLinks }) => { const pathname = usePathname() return (
) } interface ListItemProps { label: string href: string count: number isActive: boolean } const ListItem: React.FC = ({ label, href, count, isActive }) => { return (
{/*

{label}

{count > 0 && ( {count} )}
*/}
) }