'use client';


import { useCodeContext } from "./CodeContext.mjs";
import { Fragment, jsx } from "react/jsx-runtime";

//#region src/components/IDE/CodeConditionalRenderer.tsx
const CodeConditionalRender = ({ children, ...props }) => {
	const { packageManager, codeFormat, contentDeclarationFormat } = useCodeContext();
	const isPackageManagerUndefined = typeof props.packageManager === "undefined";
	const isPackageManagerSelected = packageManager === props.packageManager;
	const isCodeFormatUndefined = typeof props.codeFormat === "undefined";
	const isCodeFormatSelected = codeFormat === props.codeFormat;
	const isContentDeclarationFormatUndefined = typeof props.contentDeclarationFormat === "undefined";
	const isContentDeclarationFormatSelected = contentDeclarationFormat === props.contentDeclarationFormat;
	if ((isPackageManagerUndefined || isPackageManagerSelected) && (isCodeFormatUndefined || isCodeFormatSelected) && (isContentDeclarationFormatUndefined || isContentDeclarationFormatSelected)) return children;
	return /* @__PURE__ */ jsx(Fragment, {});
};

//#endregion
export { CodeConditionalRender };
//# sourceMappingURL=CodeConditionalRenderer.mjs.map