// Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React, { FunctionComponent } from 'react'; import { LocalizerType } from '../types/Util'; import { Button } from './Button'; import { ModalHost } from './ModalHost'; type PropsType = { title?: string; body: string; i18n: LocalizerType; onClose: () => void; }; export const Alert: FunctionComponent = ({ body, i18n, onClose, title, }) => (
{title &&

{title}

}

{body}

);