import React from 'react'; import ButtonDisplay from './ButtonDisplay'; import ContentWrapper from '../containers/ContentWrapper'; import style from '../../less/main.less'; const download = (filename, text) => { const e = document.createElement('a'); e.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text)); e.setAttribute('download', filename); e.style.display = 'none'; document.body.appendChild(e); e.click(); document.body.removeChild(e); } export default ({ secret_key_loaded, secret_key, onClick }) => { if (!secret_key_loaded) { return

Generating secret key

; } else { return

Export keys

This is your server's secret key:

{secret_key}

The server uses this to identify itself to other servers. You can use it to retain ownership of the server's name in the event that the server itself becomes irrevocably inaccessible.

Keep it safe

; } }