Skip to content

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

676 B
Raw Blame
import { useTranslation } from "react-i18next";
import { createExternalLinkHandler, withUtm } from "../../utils/externalLinks";

export function GetApiKeyLink({
  url,
  labelKey = "reasoning.getApiKey",
  className = "text-xs text-link underline decoration-link/30 hover:decoration-link/60 cursor-pointer transition-colors",
}: {
  url: string;
  labelKey?: string;
  className?: string;
}) {
  const { t } = useTranslation();
  const href = withUtm(url, "api_key");
  return (
    <a
      href={href}
      target="_blank"
      rel="noopener noreferrer"
      onClick={createExternalLinkHandler(href)}
      className={className}
    >
      {t(labelKey)}
    </a>
  );
}