import Link from "next/link" import { usePathname } from "next/navigation" import { useAccount } from "@/lib/providers/jazz-provider" import { cn } from "@/lib/utils" import { ListOfTasks } from "@/lib/schema/tasks" import { LaIcon } from "../../la-icon" export const TaskSection: React.FC<{ pathname: string }> = ({ pathname }) => { const me = { root: { tasks: [{ id: "1", title: "Test Task" }] } } const taskCount = me?.root.tasks?.length || 0 const isActive = pathname === "/tasks" if (!me) return null return (
Tasks {taskCount > 0 && {taskCount}}
{label}