{"size": 657, "ext": "js", "max_stars_repo_path": "renderer/pages/wallets/warning-modal.js", "max_stars_repo_name": "LATOKEN/lachain-desktop", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "renderer/pages/wallets/warning-modal.js", "max_issues_repo_name": "LATOKEN/lachain-desktop", "max_issues_repo_issues_event_min_datetime": "2021-06-02T14:11:24.000Z", "max_issues_repo_issues_event_max_datetime": "2021-06-02T14:11:24.000Z", "max_forks_repo_path": "renderer/pages/wallets/warning-modal.js", "max_forks_repo_name": "LAToken/lachain-desktop", "max_forks_repo_forks_event_min_datetime": "2021-07-22T14:48:09.000Z", "max_forks_repo_forks_event_max_datetime": "2021-07-22T14:48:09.000Z"}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": 1, "avg_line_length": 25.2692307692, "max_line_length": 68, "alphanum_fraction": 0.5692541857}
import React from 'react'
import {useTranslation} from 'react-i18next'

export default function WarningModal() {
  const {t} = useTranslation()

  function closeProject() {
    global.ipcRenderer.send('close-app')
  }

  return (
    <div className="P-wallet-modal">
      <div className="P-wallet-modal-block">
        <div className="P-wallet-title P-warning-text">
          <h3>{t('Now we will close the app, please restart.')}</h3>
          <div className="P-wallet-brn">
            <button type="button" onClick={() => closeProject()}>
              {t('Confirm')}
            </button>
          </div>
        </div>
      </div>
    </div>
  )
}
