// plane package imports import React from "react"; import type { IAnalyticsResponseFields } from "@plane/types"; import { Loader } from "@plane/ui"; export type InsightCardProps = { data?: IAnalyticsResponseFields; label: string; isLoading?: boolean; }; const InsightCard = (props: InsightCardProps) => { const { data, label, isLoading = false } = props; const count = data?.count ?? 0; return (
{label}
{!isLoading ? (
{count}
) : ( )}
); }; export default InsightCard;