import { Button, Input, Space } from 'antd'; import { useTranslation } from 'react-i18next'; interface SecretInputProps { value: string; configured: boolean; clearArmed: boolean; placeholder: string; onChange: (value: string) => void; onClearArmedChange: (armed: boolean) => void; } export default function SecretInput({ value, configured, clearArmed, placeholder, onChange, onClearArmedChange, }: SecretInputProps) { const { t } = useTranslation(); return ( { onChange(e.target.value); if (clearArmed) onClearArmedChange(false); }} /> {configured && ( )} ); }