diff --git a/web/components/custom/sidebar/partial/link-section.tsx b/web/components/custom/sidebar/partial/link-section.tsx new file mode 100644 index 00000000..a3da175a --- /dev/null +++ b/web/components/custom/sidebar/partial/link-section.tsx @@ -0,0 +1,97 @@ +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 { Button } from "@/components/ui/button" +import { LaIcon } from "@/components/custom/la-icon" +import { PersonalLinkLists } from "@/lib/schema/personal-link" + +export const LinkSection: React.FC = () => { + const { me } = useAccount({ + root: { + personalLinks: [] + } + }) + + const linkCount = me?.root.personalLinks?.length || 0 + + if (!me) return null + + return ( +
+ Links + {linkCount > 0 && {linkCount}} +
+ +{label}
+