UNPKG

@prismicio/react

Version:

React components and hooks to fetch and present Prismic content

22 lines (21 loc) 593 B
import { version } from "../package.js"; //#region src/lib/devMsg.ts /** * Returns a `prismic.dev/msg` URL for a given message slug. * * @example * ```ts * devMsg("missing-param"); * // => "https://prismic.dev/msg/react/v1.2.3/missing-param" * ``` * * @param slug - Slug for the message. This corresponds to a Markdown file in the Git repository's * `/messages` directory. * @returns The `prismic.dev/msg` URL for the given slug. */ function devMsg(slug) { return `https://prismic.dev/msg/react/v${version}/${slug}`; } //#endregion export { devMsg }; //# sourceMappingURL=devMsg.js.map