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, version, 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}
{version && (

{version.tag}

Commit: {version.commit}

Build Date: {version.date}

)}
); }; export default Settings;