/**
 * @private
 * constructs the complete create uiSchema for Hub Discussions.
 * This defines how the schema properties should be
 * rendered in the discussion creation experience
 */
export const buildUiSchema = (i18nScope, _options, _context) => {
    return Promise.resolve({
        type: "Layout",
        elements: [
            {
                labelKey: `${i18nScope}.fields.name.label`,
                scope: "/properties/name",
                type: "Control",
                options: {
                    messages: [
                        {
                            type: "ERROR",
                            keyword: "required",
                            icon: true,
                            labelKey: `${i18nScope}.fields.name.requiredError`,
                        },
                        {
                            type: "ERROR",
                            keyword: "maxLength",
                            icon: true,
                            labelKey: `shared.fields.title.maxLengthError`,
                        },
                        {
                            type: "ERROR",
                            keyword: "format",
                            icon: true,
                            labelKey: `${i18nScope}.fields.name.entityTitleValidatorError`,
                        },
                    ],
                },
            },
            {
                labelKey: `${i18nScope}.fields.prompt.label`,
                scope: "/properties/prompt",
                type: "Control",
                options: {
                    helperText: {
                        labelKey: `${i18nScope}.fields.prompt.helperText`,
                    },
                    messages: [
                        {
                            type: "ERROR",
                            keyword: "maxLength",
                            icon: true,
                            labelKey: `${i18nScope}.fields.prompt.maxLengthError`,
                        },
                    ],
                },
            },
        ],
    });
};
//# sourceMappingURL=DiscussionUiSchemaCreate.js.map