HenryNguyen5 c84740c4d4 Generic Confirmation Modal (#940)
* Make generic modal

* Allow generic modals to be injected into send button component
2018-01-29 15:38:28 -06:00

15 lines
450 B
TypeScript

import {
ConfirmationModalTemplate,
OwnProps as ConfirmationModalTemplateProps
} from '../ConfirmationModalTemplate';
import { Details, Summary } from './components';
import React, { SFC } from 'react';
interface OwnProps {
onClose: ConfirmationModalTemplateProps['onClose'];
}
export const ConfirmationModal: SFC<OwnProps> = ({ onClose }) => (
<ConfirmationModalTemplate summary={<Summary />} details={<Details />} onClose={onClose} />
);