import type { Node } from '@markdoc/markdoc' /* * Display two graphics (which link to a full version of the desktop version) * with one optimized for mobile display and one optimized for desktop. */ export function ResponsiveGraphic(props: { alt: string desktop: string mobile: string }) { // Note: is needed here, not since will produce 404s in // translated pages by prefixing the path to the asset incorrectly. return ( {props.alt} {props.alt} )} export function ResposiveGraphicForLlms(node: Node) { return `![${node.attributes.alt}](${node.attributes.desktop})` }