import { useId, type ReactNode } from 'react'; interface TermProps { /** The explanation shown in the hint. */ tip?: string; /** An image shown above the explanation; a sibling file, resolved like any other image. */ image?: string; children?: ReactNode; } /** * A word or phrase with a hint: hover, tap or tab to it and `tip` and `image` pop up. * * The hint is rendered into the article up front and only hidden, never mounted on demand * (as a Radix popover would be), so it survives both exports, which take the article's * markup as it stands. The behaviour lives in `features/terms.ts`, bound once on the * document by every runtime that shows a page. Only phrasing elements are used: a term * sits inside a paragraph. */ export function Term({ tip, image, children }: TermProps) { const id = useId(); return ( ); }