@open-tender/ui
Version:
A component library for use with the Open Tender web app
11 lines (10 loc) • 612 B
JavaScript
import React from 'react';
import { makeProps } from '../utils';
import ModalContent from './ModalContent';
import View from './View';
const Option = ({ config, modalContentConfig, handlers, option, renderItemGroups }) => {
const { name, description } = option;
return (React.createElement(ModalContent, { config: modalContentConfig, title: name, subtitle: description, submit: handlers.submit, cancel: handlers.close, cancelText: "Close", style: { width: '100%' } },
React.createElement(View, Object.assign({}, makeProps(config, 'option')), renderItemGroups(false))));
};
export default Option;