import {type ThreadPostPosition} from '#/screens/PostThread/reader' import {atoms as a, useTheme} from '#/alf' import {Span} from '#/components/Typography' /** * Position indicator shown at the end of a post's text when it is part of a * self-thread in linear view, e.g. "(2/12)". Rendered inline via RichText's * `trailing` prop so it flows with the last line of text. Not translated: it * is purely numeric. * * Uses Span (raw RN Text) with text_sm for a smaller indicator, but no * lineHeight - our Text component would apply absolute leading_snug and * collapse spacing for the whole parent paragraph on native. */ export function ThreadPositionChip({ threadPosition, }: { threadPosition: ThreadPostPosition }) { const t = useTheme() return ( {` (${threadPosition.position}/${threadPosition.postCount})`} ) }