import React, { useCallback } from 'react'; import Navicon from 'containers/Navicon'; import Button from 'components/ui/Button'; import Checkbox from 'components/ui/Checkbox'; import FileInput from 'components/ui/FileInput'; const Settings = ({ settings, installable, setSetting, onCertChange, onKeyChange, onInstall, uploadCert }) => { const status = settings.uploadingCert ? 'Uploading...' : 'Upload'; const error = settings.certError; const handleInstallClick = useCallback( async () => { installable.prompt(); await installable.userChoice; onInstall(); }, [installable] ); return (

Settings

{installable && ( )}

Visuals

setSetting('coloredNicks', e.target.checked)} />

Client Certificate

Certificate

Private Key

{error ?

{error}

: null}
); }; export default Settings;