"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TitleDescription = void 0;
const 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
 */
const antd_1 = require("antd");
function TitleDescription({ showExplanations, disabled = false }) {
    return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(antd_1.Divider, { plain: true, children: "Customizable Descriptors" }), (0, jsx_runtime_1.jsx)(antd_1.Form.Item, { 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, { 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