UNPKG

@open-tender/ui

Version:

A component library for use with the Open Tender web app

12 lines (11 loc) 661 B
import React from 'react'; import { makeProps } from '../utils'; import ModalContent from './ModalContent'; import Text from './Text'; import View from './View'; const Ingredients = ({ config, handlers, title, subtitle, ingredients }) => { return (React.createElement(ModalContent, { config: config, title: title, subtitle: subtitle, submit: handlers.submit, cancel: handlers.close, cancelText: "Close" }, React.createElement(View, Object.assign({}, makeProps(config, 'ingredients__content')), React.createElement(Text, Object.assign({}, makeProps(config, 'ingredients__text'), { text: ingredients }))))); }; export default Ingredients;