/**
 * 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_index$1 = require("./hooks/index.js");
let react = require("react");
react = require_runtime.__toESM(react);
let prop_types = require("prop-types");
prop_types = require_runtime.__toESM(prop_types);
//#region src/components/WebTerminal/WebTerminalContentWrapper.tsx
/**
* Copyright IBM Corp. 2022, 2022
*
* 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 componentName = "WebTerminalContentWrapper";
const blockClass = `${require_settings.pkg.prefix}--web-terminal-content-wrapper`;
const WebTerminalContentWrapper = react.default.forwardRef(({ children, ...rest }, ref) => {
	const { open } = require_index$1.useWebTerminal();
	return /* @__PURE__ */ react.default.createElement("div", {
		ref,
		className: (0, import_classnames.default)([blockClass, { [`${blockClass}--open`]: open }]),
		...rest
	}, children);
});
WebTerminalContentWrapper.displayName = componentName;
WebTerminalContentWrapper.propTypes = { 
/**
* Pass in content as children.
*/
children: prop_types.default.oneOfType([prop_types.default.arrayOf(prop_types.default.node), prop_types.default.node]).isRequired };
//#endregion
exports.WebTerminalContentWrapper = WebTerminalContentWrapper;
