Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Skipped
25 lines
873 B
Plaintext
25 lines
873 B
Plaintext
"use client";
|
|
import { useRouter } from "./useRouter.js";
|
|
import { Asset } from "./Asset.js";
|
|
import { useTags } from "./headContentUtils.js";
|
|
import { createElement } from "react";
|
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
//#region src/HeadContent.tsx
|
|
/**
|
|
* Render route-managed head tags (title, meta, links, styles, head scripts).
|
|
* Place inside the document head of your app shell.
|
|
* @link https://tanstack.com/router/latest/docs/framework/react/guide/document-head-management
|
|
*/
|
|
function HeadContent(props) {
|
|
const tags = useTags(props.assetCrossOrigin);
|
|
const nonce = useRouter().options.ssr?.nonce;
|
|
return /* @__PURE__ */ jsx(Fragment, { children: tags.map((tag) => /* @__PURE__ */ createElement(Asset, {
|
|
...tag,
|
|
key: `tsr-meta-${JSON.stringify(tag)}`,
|
|
nonce
|
|
})) });
|
|
}
|
|
//#endregion
|
|
export { HeadContent };
|
|
|
|
//# sourceMappingURL=HeadContent.js.map |