34 lines
871 B
TypeScript
34 lines
871 B
TypeScript
// Copyright 2025 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import React from 'react';
|
|
|
|
import type { LocalizerType } from '../types/Util';
|
|
import { Modal } from './Modal';
|
|
import { Button } from './Button';
|
|
|
|
export type PropsType = {
|
|
i18n: LocalizerType;
|
|
onClose: () => unknown;
|
|
};
|
|
|
|
export function DonationStillProcessingModal(props: PropsType): JSX.Element {
|
|
const { i18n, onClose } = props;
|
|
|
|
return (
|
|
<Modal
|
|
hasXButton
|
|
i18n={i18n}
|
|
modalFooter={
|
|
<Button onClick={onClose}>{i18n('icu:Confirmation--confirm')}</Button>
|
|
}
|
|
modalName="DonationStillProcessingModal"
|
|
moduleClassName="DonationStillProcessingModal"
|
|
noMouseClose
|
|
onClose={onClose}
|
|
title={i18n('icu:Donations__StillProcessing')}
|
|
>
|
|
{i18n('icu:Donations__StillProcessing__Description')}
|
|
</Modal>
|
|
);
|
|
}
|