@open-tender/ui
Version:
A component library for use with the Open Tender web app
9 lines (8 loc) • 562 B
JavaScript
import React from 'react';
import { Button, Label } from '../components';
import { makeProps } from '../utils';
const InputButton = ({ config, handlers, label, value, isRequired, style, labelStyle, labelConfig, showOptionalLabel }) => {
return (React.createElement(Label, { config: labelConfig, label: label, isRequired: isRequired, style: labelStyle, showOptional: showOptionalLabel },
React.createElement(Button, Object.assign({}, makeProps(config, 'inputButton', style), { onClick: handlers.open, text: value }))));
};
export default InputButton;