import { Text, View } from 'react-native'; import type { Doc } from '@spoon/backend/convex/_generated/dataModel.js'; import { Badge } from '~/components/ui/badge'; import { ListRow } from '~/components/ui/list-row'; import { formatDateTime, titleize, truncate } from '~/utils/format'; import { ThreadStatusBadge } from './thread-status-badge'; export const ThreadListRow = ({ thread, onPress, }: { thread: Doc<'threads'>; onPress: () => void; }) => ( {thread.maintenanceOutcome ? ( ) : null} {thread.upstreamTo ? ( upstream {thread.upstreamTo.slice(0, 12)} ) : null} );