14 lines
329 B
JavaScript
14 lines
329 B
JavaScript
// Mock ink-text-input for testing
|
|
const React = require("react");
|
|
|
|
const TextInput = ({ value, onChange, placeholder, ...props }) =>
|
|
React.createElement("input", {
|
|
...props,
|
|
value,
|
|
onChange: (e) => onChange && onChange(e.target.value),
|
|
placeholder,
|
|
});
|
|
|
|
module.exports = TextInput;
|
|
module.exports.default = TextInput;
|