// Copyright 2022 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React from 'react'; import type { LocalizerType } from '../types/Util'; import { Button, ButtonVariant } from './Button'; import { Modal } from './Modal'; import { Spinner } from './Spinner'; type PropsActionsType = { uploadCrashReports: () => void; eraseCrashReports: () => void; }; type PropsType = { i18n: LocalizerType; isPending: boolean; } & PropsActionsType; export function CrashReportDialog(props: Readonly): JSX.Element { const { i18n, isPending, uploadCrashReports, eraseCrashReports } = props; const onEraseClick = (event: React.MouseEvent) => { event.preventDefault(); eraseCrashReports(); }; const onSubmitClick = (event: React.MouseEvent) => { event.preventDefault(); uploadCrashReports(); }; return (
{i18n('CrashReportDialog__body')}
); }