// components import { ActivityGraph } from "components/workspace"; // ui import { Loader, Tooltip } from "@plane/ui"; // icons import { Info } from "lucide-react"; // types import { IUserWorkspaceDashboard } from "types"; import { useRouter } from "next/router"; type Props = { data: IUserWorkspaceDashboard | undefined; }; export const IssuesStats: React.FC = ({ data }) => { const router = useRouter(); const { workspaceSlug } = router.query; return (

Issues assigned to you

{data ? (
router.push(`/${workspaceSlug}/workspace-views/assigned`)} > {data.assigned_issues_count}
) : ( )}

Pending issues

{data ? ( data.pending_issues_count ) : ( )}

Completed issues

{data ? ( data.completed_issues_count ) : ( )}

Issues due by this week

{data ? ( data.issues_due_week_count ) : ( )}

Activity graph

); };