import React from 'react'; import { useTranslation } from 'react-i18next'; import { SaveAPIKeyModalProps } from '../models/misc'; import WrapperModal from './WrapperModal'; export default function SaveAPIKeyModal({ apiKey, close, }: SaveAPIKeyModalProps) { const { t } = useTranslation(); const [isCopied, setIsCopied] = React.useState(false); const handleCopyKey = () => { navigator.clipboard.writeText(apiKey); setIsCopied(true); }; return (

{t('modals.saveKey.note')}

{t('modals.saveKey.disclaimer')}

API Key

{apiKey}
); }