@shopgate/pwa-common
Version:
Common library for the Shopgate Connect PWA.
27 lines (26 loc) • 592 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
import SimpleInput from "./components/SimpleInput";
import MultiLineInput from "./components/MultiLineInput";
/**
* Input component.
*
* @param {Object} props Props
* @return {JSX}
*/
import { jsx as _jsx } from "react/jsx-runtime";
const Factory = props => {
if (props.multiLine) {
return /*#__PURE__*/_jsx(MultiLineInput, {
...props
});
}
return /*#__PURE__*/_jsx(SimpleInput, {
...props
});
};
Factory.defaultProps = {
multiLine: false,
type: null
};
export default props => Factory(props);