"use client"; import Link from "next/link"; import { useParams } from "next/navigation"; // ui import { UserCircle2 } from "lucide-react"; import { IUserProfileData } from "@plane/types"; import { CreateIcon, LayerStackIcon, Loader } from "@plane/ui"; // types type Props = { userProfile: IUserProfileData | undefined; }; export const ProfileStats: React.FC = ({ userProfile }) => { const { workspaceSlug, userId } = useParams(); const overviewCards = [ { icon: CreateIcon, route: "created", title: "Issues created", value: userProfile?.created_issues ?? "...", }, { icon: UserCircle2, route: "assigned", title: "Issues assigned", value: userProfile?.assigned_issues ?? "...", }, { icon: LayerStackIcon, route: "subscribed", title: "Issues subscribed", value: userProfile?.subscribed_issues ?? "...", }, ]; return (

Overview

{userProfile ? (
{overviewCards.map((card) => (

{card.title}

{card.value}

))}
) : ( )}
); };