"use client";
let react = require("react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/client-only/client-only.tsx
var noop = () => void 0;
var ClientOnly = (props) => {
	const { children, fallback } = props;
	if (!(0, react.useSyncExternalStore)(() => noop, () => true, () => false)) return fallback;
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: typeof children === "function" ? children() : children });
};
//#endregion
exports.ClientOnly = ClientOnly;
