The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import { Image, type ImageSourcePropType } from "react-native"; |
| 2 | |
| 3 | import type { MarkdownFileIcon } from "./markdownLinks"; |
| 4 | import { MARKDOWN_FILE_ICON_SOURCES } from "./markdownFileIcons.generated"; |
| 5 | |
| 6 | export function markdownFileIconSource(icon: MarkdownFileIcon): ImageSourcePropType { |
| 7 | return MARKDOWN_FILE_ICON_SOURCES[icon]; |
| 8 | } |
| 9 | |
| 10 | export function markdownIconAssetUri(source: ImageSourcePropType): string | undefined { |
| 11 | return Image.resolveAssetSource(source)?.uri; |
| 12 | } |