Something went wrong. Try again.
Personal iOS fork of Witchsky (itself a fork of Bluesky social-app).
Something went wrong. Try again.
12345678910111213141516171819202122232425262728import {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 ( <Span style={[a.text_sm, t.atoms.text_contrast_medium]}> {` (${threadPosition.position}/${threadPosition.postCount})`} </Span> )}