/**
 * 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_index = require('../../../node_modules/classnames/index.js');
const require_settings = require('../../../settings.js');
const require_devtools = require('../../../global/js/utils/devtools.js');
const require_HTTPErrorContent = require('../HTTPErrorContent.js');
const require_HTTPErrorSvgOther = require('../assets/HTTPErrorSvgOther.js');
let react = require("react");
react = require_runtime.__toESM(react);
let prop_types = require("prop-types");

//#region src/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.tsx
/**
* 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.
*/
var import_classnames = /* @__PURE__ */ require_runtime.__toESM(require_index.default);
const blockClass = `${require_settings.pkg.prefix}--http-errors`;
const componentName = "HTTPErrorOther";
/**
* HTTP errors are used in an attempt to access something that isn’t available or
the user doesn’t have permission for. This HTTPError component is generic so you
can use it when you receive an error code that isn't provided.
*/
const HTTPErrorOther = react.default.forwardRef(({ className, description, errorCodeLabel, links, title, ...rest }, ref) => {
	return /* @__PURE__ */ react.default.createElement("div", {
		...rest,
		className: (0, import_classnames.default)(blockClass, className),
		ref,
		...require_devtools.getDevtoolsProps(componentName)
	}, /* @__PURE__ */ react.default.createElement(require_HTTPErrorContent.HTTPErrorContent, {
		description,
		errorCodeLabel,
		title,
		links
	}), /* @__PURE__ */ react.default.createElement(require_HTTPErrorSvgOther.HTTPErrorSvgOther, {
		title,
		className: `${blockClass}__image`
	}));
});
/**@ts-ignore*/
HTTPErrorOther.deprecated = {
	level: "warn",
	details: `${componentName} is deprecated. Please migrate to FullPageError by running npx @carbon/upgrade migrate ibm-products-update-http-errors --write`
};
HTTPErrorOther.displayName = componentName;
HTTPErrorOther.propTypes = {
	className: prop_types.string,
	description: prop_types.string.isRequired,
	errorCodeLabel: prop_types.string.isRequired,
	links: (0, prop_types.arrayOf)((0, prop_types.shape)({
		text: prop_types.string.isRequired,
		href: prop_types.string.isRequired
	})),
	title: prop_types.string.isRequired
};

//#endregion
exports.HTTPErrorOther = HTTPErrorOther;