2022-10-30 16:56:26 +00:00
|
|
|
import { memo } from 'react';
|
2021-09-28 22:04:04 +00:00
|
|
|
import variables from 'modules/variables';
|
2022-04-07 09:25:01 +00:00
|
|
|
import { MdClose } from 'react-icons/md';
|
2022-10-29 21:28:17 +00:00
|
|
|
import Tooltip from '../../../helpers/tooltip/Tooltip';
|
2021-09-28 22:04:04 +00:00
|
|
|
|
2022-10-30 16:56:26 +00:00
|
|
|
function SideloadFailedModal({ modalClose, reason }) {
|
2021-09-05 19:52:26 +00:00
|
|
|
return (
|
2022-10-29 21:28:17 +00:00
|
|
|
<div className="smallModal">
|
|
|
|
<div className="shareHeader">
|
2022-11-06 11:59:59 +00:00
|
|
|
<span className="title">{variables.getMessage('modals.main.error_boundary.title')}</span>
|
2022-10-29 21:28:17 +00:00
|
|
|
<Tooltip
|
|
|
|
title={variables.getMessage('modals.main.settings.sections.advanced.reset_modal.cancel')}
|
|
|
|
>
|
|
|
|
<div className="close" onClick={modalClose}>
|
|
|
|
<MdClose />
|
|
|
|
</div>
|
|
|
|
</Tooltip>
|
2021-09-05 19:52:26 +00:00
|
|
|
</div>
|
2022-10-29 21:28:17 +00:00
|
|
|
<span>{variables.getMessage('modals.main.addons.sideload.failed')}</span>
|
2022-11-06 11:59:59 +00:00
|
|
|
<span className="subtitle">{reason}</span>
|
2022-10-29 21:28:17 +00:00
|
|
|
</div>
|
2021-09-05 19:52:26 +00:00
|
|
|
);
|
|
|
|
}
|
2022-10-30 16:56:26 +00:00
|
|
|
|
2022-11-06 11:59:59 +00:00
|
|
|
export default memo(SideloadFailedModal);
|