2021-04-13 14:20:02 +00:00
|
|
|
// Copyright 2020-2021 Signal Messenger, LLC
|
2020-10-30 20:34:04 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2020-10-06 17:06:34 +00:00
|
|
|
import * as React from 'react';
|
|
|
|
import { LocalizerType } from '../types/Util';
|
|
|
|
import { Spinner } from './Spinner';
|
|
|
|
|
|
|
|
export type PropsType = {
|
|
|
|
readonly i18n: LocalizerType;
|
|
|
|
};
|
|
|
|
|
2021-04-13 14:20:02 +00:00
|
|
|
// TODO: This should use <Modal>. See DESKTOP-1038.
|
2020-10-06 17:06:34 +00:00
|
|
|
export const ProgressDialog = React.memo(({ i18n }: PropsType) => {
|
|
|
|
return (
|
|
|
|
<div className="module-progress-dialog">
|
|
|
|
<div className="module-progress-dialog__spinner">
|
|
|
|
<Spinner svgSize="normal" size="39px" direction="on-progress-dialog" />
|
|
|
|
</div>
|
|
|
|
<div className="module-progress-dialog__text">{i18n('updating')}</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
});
|