"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Textarea = void 0;
const react_1 = __importDefault(require("react"));
const Textarea = ({ placeholder, label, name, type, setValue, value, }) => {
    return (react_1.default.createElement(react_1.default.Fragment, null, type == "float"
        ? (react_1.default.createElement("div", { className: "float-form-style form-control" },
            react_1.default.createElement("textarea", { name: name, placeholder: placeholder, onChange: (e) => setValue(e), rows: 5, cols: 100, value: value }),
            label ? react_1.default.createElement("label", { htmlFor: name }, label) : null))
        : type == "inline"
            ? (react_1.default.createElement("div", { className: "form-control inline" },
                label ? react_1.default.createElement("label", { htmlFor: name }, label) : null,
                react_1.default.createElement("textarea", { name: name, placeholder: placeholder, onChange: (e) => setValue(e), rows: 5, cols: 100, value: value })))
            : (react_1.default.createElement("div", { className: "form-control" },
                label ? react_1.default.createElement("label", { htmlFor: name }, label) : null,
                react_1.default.createElement("textarea", { name: name, placeholder: placeholder, onChange: (e) => setValue(e), rows: 5, cols: 100, value: value })))));
};
exports.Textarea = Textarea;
