"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = TextInput;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
function TextInput({ 'data-test-id': dataTestId, label, onChange, placeholder = '', type = 'text', value, }) {
    return (React.createElement("div", { className: 'Input__wrapper' },
        React.createElement("label", { className: 'Input__label' }, label),
        React.createElement("input", { className: 'Input__input', "data-test-id": dataTestId, onChange: (e) => {
                onChange(e.target.value);
            }, placeholder: placeholder, type: type, value: value })));
}
//# sourceMappingURL=TextInput.js.map