@open-tender/ui
Version:
A component library for use with the Open Tender web app
10 lines (9 loc) • 565 B
JavaScript
import React from 'react';
import { makeProps } from '../utils';
import ModalContent from './ModalContent';
import View from './View';
const KeypadModal = ({ config, modalContentConfig, handlers, subtitle, title, renderKeypad }) => {
return (React.createElement(ModalContent, { config: modalContentConfig, title: title, subtitle: subtitle, submit: handlers.submit, submitText: "All Done", cancel: handlers.close },
React.createElement(View, Object.assign({}, makeProps(config, 'keypadModal__content')), renderKeypad())));
};
export default KeypadModal;