import { cs } from "../utils/styles.js";
import "../utils/index.js";
import { useStyleConfig } from "../core/theme.js";
import { vui } from "../core/vui.js";
import "../core/index.js";
import link_default from "../link/link.js";
import "../link/index.js";
import p_default from "../p/p.js";
import "../p/index.js";
import { useHeaderContext } from "./context.js";
import { Fragment, jsx, jsxs } from "react/jsx-runtime";

//#region src/header/headerServicesMessage.tsx
/** Displays a message with link to Marketplace if user has no services available. */
const HeaderServicesMessage = vui((props, ref) => {
	const { children, className, ...rest } = props;
	const { links } = useHeaderContext() ?? {};
	const styles = useStyleConfig("Header", useHeaderContext());
	return /* @__PURE__ */ jsx(p_default, {
		className: cs("vui-headerServicesMessage", className),
		mb: 2,
		ml: 2,
		ref,
		...styles.servicesMessage,
		...rest,
		children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
			"No services available. ",
			/* @__PURE__ */ jsx("br", {}),
			"Explore more on the",
			" ",
			/* @__PURE__ */ jsx(link_default, {
				href: links?.marketplace,
				isUnderlined: true,
				children: "marketplace"
			}),
			"."
		] })
	});
});
HeaderServicesMessage.displayName = "HeaderServicesMessage";
var headerServicesMessage_default = HeaderServicesMessage;

//#endregion
export { HeaderServicesMessage, headerServicesMessage_default as default };
globalThis.__vuiVersion__ = "4.0.0-beta.1"
//# sourceMappingURL=headerServicesMessage.js.map