| 1 | import type { ImageSourcePropType } from "react-native"; |
| 2 | |
| 3 | import type { MarkdownLinkIcon } from "./markdownLinks"; |
| 4 | |
| 5 | // Black-on-transparent marks; callers tint them with the link color. |
| 6 | const MARKDOWN_LINK_ICON_SOURCES = { |
| 7 | github: require("../../assets/link-icons/github.png"), |
| 8 | } as const satisfies Readonly<Record<MarkdownLinkIcon, ImageSourcePropType>>; |
| 9 | |
| 10 | export function markdownLinkIconSource(icon: MarkdownLinkIcon): ImageSourcePropType { |
| 11 | return MARKDOWN_LINK_ICON_SOURCES[icon]; |
| 12 | } |