Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

1.3 KB
Raw Blame
import { UserPlus, Users } from "./icons";
import { useTranslation } from "react-i18next";
import { cn } from "./lib/utils";
import { Button } from "./ui/button";

export default function LeaderboardSetupCard({
  className,
  colleagueCount,
  domain,
  onCreate,
}: {
  className?: string;
  colleagueCount: number;
  domain: string | null;
  onCreate: () => void;
}) {
  const { t } = useTranslation();

  return (
    <section
      data-leaderboard-state="create"
      className={cn(
        "flex min-h-64 flex-col items-center justify-center rounded-2xl border border-border/70 bg-card/70 px-6 py-10 text-center dark:border-white/10",
        className
      )}
    >
      <div className="flex size-11 items-center justify-center rounded-full bg-primary/10 text-primary">
        <Users size={20} />
      </div>
      <h2 className="mt-4 text-base font-semibold">{t("insights.leaderboard.setupTitle")}</h2>
      <p className="mt-2 max-w-md text-xs leading-relaxed text-muted-foreground">
        {domain && colleagueCount > 0
          ? t("insights.leaderboard.setupDomainDescription", { count: colleagueCount, domain })
          : t("insights.leaderboard.setupDescription")}
      </p>
      <Button className="mt-5" onClick={onCreate}>
        <UserPlus size={14} />
        {t("insights.leaderboard.setupCta")}
      </Button>
    </section>
  );
}