// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {ReactNode, useCallback} from 'react' import {FormattedMessage} from 'react-intl' import Button from '../widgets/buttons/button' import Dialog from './dialog' import './confirmationDialogBox.scss' type ConfirmationDialogBoxProps = { heading: string subText?: string | ReactNode confirmButtonText?: string destructive?: boolean onConfirm: () => void onClose: () => void } type Props = { dialogBox: ConfirmationDialogBoxProps } export const ConfirmationDialogBox = (props: Props) => { const handleOnClose = useCallback(props.dialogBox.onClose, []) const handleOnConfirm = useCallback(props.dialogBox.onConfirm, []) return (

{props.dialogBox.heading}

{props.dialogBox.subText}
) } export default ConfirmationDialogBox export {ConfirmationDialogBoxProps}