entryHref

tcmts.share.entryHref · #gxo3o2hk · function · runs anywhere

A history entry's page, if there's one to link to (pageLinks).

import { at, pageLinks } from "#codebase/tcmts/share";

export const entryHref = (causal: string): string | undefined =>
  pageLinks.current ? pageLinks.current.entry(causal) : at(`/history/${causal}`)

uses

used by