import { jsx } from "react/jsx-runtime";
import { useRef } from "react";
import { useServerInsertedHTML } from "next/navigation";
import {
  BaseHeadSnippet,
  snippetToElements
} from "../../../../runtimes/react/components/page/HeadSnippet";
function HeadSnippet({ snippet }) {
  const headSnippetElements = snippetToElements(snippet);
  const insertedServerHTML = useRef(false);
  useServerInsertedHTML(() => {
    if (insertedServerHTML.current)
      return;
    insertedServerHTML.current = true;
    return headSnippetElements;
  });
  return /* @__PURE__ */ jsx(BaseHeadSnippet, { snippet });
}
export {
  HeadSnippet
};
//# sourceMappingURL=HeadSnippet.js.map