20 lines
566 B
JavaScript
20 lines
566 B
JavaScript
import React from 'react';
|
|
|
|
const makeInputJSON = (dictArgs) => {
|
|
const {id, name, value = null, textLabel = null, type = null, placeholder = null, stepValue = null, minValue = null, options = null, onChange = null} = dictArgs;
|
|
return {
|
|
id: id,
|
|
name: name,
|
|
value: value,
|
|
textLabel: textLabel,
|
|
type: type,
|
|
placeholder: placeholder,
|
|
stepValue: stepValue,
|
|
minValue: minValue,
|
|
options: options,
|
|
onChange: onChange
|
|
};
|
|
};
|
|
|
|
const methods = { makeInputJSON }
|
|
export default methods; |