/**
 * Copyright IBM Corp. 2020, 2026
 *
 * This source code is licensed under the Apache-2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */

const require_runtime = require('../../_virtual/_rolldown/runtime.js');
const require_settings = require('../../settings.js');
let react = require("react");
react = require_runtime.__toESM(react);
let prop_types = require("prop-types");
let _carbon_react = require("@carbon/react");

//#region src/components/HTTPErrors/HTTPErrorContent.jsx
/**
* Copyright IBM Corp. 2021, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
const blockClass = `${require_settings.pkg.prefix}--http-errors`;
const componentName = "HTTPErrorContent";
let HTTPErrorContent = ({ description, errorCodeLabel, title, links }) => {
	return /* @__PURE__ */ react.default.createElement("div", { className: `${blockClass}__content` }, errorCodeLabel && /* @__PURE__ */ react.default.createElement("p", { className: `${blockClass}__error-code-label` }, errorCodeLabel), title && /* @__PURE__ */ react.default.createElement("h1", { className: `${blockClass}__title` }, title), description && /* @__PURE__ */ react.default.createElement("p", { className: `${blockClass}__description` }, description), links && links.length && links.map((link) => /* @__PURE__ */ react.default.createElement(_carbon_react.Link, {
		...link,
		role: "link",
		href: link.href,
		key: link.text,
		className: `${blockClass}__link`
	}, link.text)));
};
HTTPErrorContent.displayName = componentName;
HTTPErrorContent.propTypes = {
	description: prop_types.string.isRequired,
	errorCodeLabel: prop_types.string.isRequired,
	links: (0, prop_types.arrayOf)((0, prop_types.shape)({
		..._carbon_react.Link.propTypes,
		text: prop_types.string.isRequired,
		href: prop_types.string.isRequired
	})),
	title: prop_types.string.isRequired
};

//#endregion
exports.HTTPErrorContent = HTTPErrorContent;