"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.TitleDescription = void 0;
var jsx_runtime_1 = require("react/jsx-runtime");
/*
 *  This file is part of CoCalc: Copyright © 2022 Sagemath, Inc.
 *  License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
 */
var antd_1 = require("antd");
function TitleDescription(_a) {
    var showExplanations = _a.showExplanations, _b = _a.disabled, disabled = _b === void 0 ? false : _b;
    return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(antd_1.Divider, __assign({ plain: true }, { children: "Customizable Descriptors" })), (0, jsx_runtime_1.jsx)(antd_1.Form.Item, __assign({ label: "Title", name: "title", style: { width: "100%" }, extra: showExplanations ? ((0, jsx_runtime_1.jsx)("p", { children: "Given your license a title makes it easier to keep track of. You can change it at any time." })) : undefined }, { children: (0, jsx_runtime_1.jsx)(antd_1.Input, { disabled: disabled, placeholder: "Enter the title of your license (optional)" }) })), (0, jsx_runtime_1.jsx)(antd_1.Form.Item, __assign({ label: "Description", name: "description", extra: showExplanations ? ((0, jsx_runtime_1.jsx)("p", { children: "Given your license a longer description to record extra information that isn't always shown with the license. You can change this at any time." })) : undefined }, { children: (0, jsx_runtime_1.jsx)(antd_1.Input.TextArea, { disabled: disabled, placeholder: "Describe your license (optional)", rows: 2 }) }))] }));
}
exports.TitleDescription = TitleDescription;
//# sourceMappingURL=title-description.js.map