2023-01-03 11:55:46 -08:00
|
|
|
// Copyright 2020 Signal Messenger, LLC
|
2020-10-30 15:34:04 -05:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2020-10-06 10:06:34 -07:00
|
|
|
import * as React from 'react';
|
2021-10-26 14:15:33 -05:00
|
|
|
import type { LocalizerType } from '../types/Util';
|
2020-10-06 10:06:34 -07:00
|
|
|
import { Spinner } from './Spinner';
|
|
|
|
|
|
|
|
export type PropsType = {
|
|
|
|
readonly i18n: LocalizerType;
|
|
|
|
};
|
|
|
|
|
2021-04-13 09:20:02 -05:00
|
|
|
// TODO: This should use <Modal>. See DESKTOP-1038.
|
2022-11-17 16:45:19 -08:00
|
|
|
export const ProgressDialog = React.memo(function ProgressDialogInner({
|
|
|
|
i18n,
|
|
|
|
}: PropsType) {
|
2020-10-06 10:06:34 -07:00
|
|
|
return (
|
|
|
|
<div className="module-progress-dialog">
|
|
|
|
<div className="module-progress-dialog__spinner">
|
|
|
|
<Spinner svgSize="normal" size="39px" direction="on-progress-dialog" />
|
|
|
|
</div>
|
2023-03-29 17:03:25 -07:00
|
|
|
<div className="module-progress-dialog__text">{i18n('icu:updating')}</div>
|
2020-10-06 10:06:34 -07:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
});
|