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 (
Certificate
Private Key
{error}
: null}