The best way to control Claude Code, Codex and more from any computer or phone

main
ts 12 lines 469 Bytes
Raw
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 }