/* eslint-disable max-lines */ "use client"; import { useTranslation } from "react-i18next"; import { FaCopy } from "react-icons/fa"; import Button from "@/lib/components/ui/Button"; import Field from "@/lib/components/ui/Field"; import { useApiKeyConfig } from "./hooks/useApiKeyConfig"; export const ApiKeyConfig = (): JSX.Element => { const { apiKey, handleCopyClick, handleCreateClick, } = useApiKeyConfig(); const { t } = useTranslation(["config"]); return ( <>

Quivr {t("apiKey")}

{apiKey === "" ? ( ) : (
)}
); };