import React from "react"; import { Pressable, Text, View } from "react-native"; import { asNumber, asString, asStringArray } from "../helpers/value"; import { CollectionScaffold } from "../shared/CollectionScaffold"; import { ChipList } from "../shared/ChipList"; import { StandardIndexCard } from "../shared/StandardIndexCard"; import type { CollectionItemRendererProps, CollectionRendererProps } from "../../types/renderer.types"; export function EovIndexCollectionRenderer(props: CollectionRendererProps) { return ; } export function EovCollectionRenderer(props: CollectionRendererProps) { return ; } export function EovIndexCardRenderer({ item, onPress }: CollectionItemRendererProps) { const a = item.attributes; const subtitle = asString(a.sub_title) || asString(a.subtitle) || (asStringArray(a.alt_name).length > 0 ? asStringArray(a.alt_name).join(", ") : asString(a.alt_name)) || null; return ( ); } export function EovCardRenderer({ item, onPress }: CollectionItemRendererProps) { const a = item.attributes; return ( {asString(a.name) || item.title} Master: {asString(a.master_point)} ยท Paired: {asString(a.paired_meridian)} ); }