// Copyright (c) 2015-2016 Yuya Ochiai // Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import {Button, Modal} from 'react-bootstrap'; type Props = { title: string; body: React.ReactNode; acceptLabel: string; cancelLabel: string; onHide: () => void; onAccept: React.MouseEventHandler; onCancel: React.MouseEventHandler; }; export default function DestructiveConfirmationModal(props: Props) { const { title, body, acceptLabel, cancelLabel, onAccept, onCancel, onHide, ...rest} = props; return ( {title} {body} ); }