:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
import type { ReactElement } from 'react'
import { ActivityIndicator, Text, View } from 'react-native'
import { createStyles, useColors } from '@/ui/theme'
import { type } from '@/ui/tokens'
interface ChatProgressLineProps {
text: string
}
export function ChatProgressLine({ text }: ChatProgressLineProps): ReactElement {
const colors = useColors()
const styles = useStyles()
return (
<View style={styles.row} accessibilityRole="progressbar" accessibilityLabel={text} testID="chat-progress">
<ActivityIndicator size="small" color={colors.tertiary} />
<Text style={styles.text} numberOfLines={2}>
{text}
</Text>
</View>
)
}
const useStyles = createStyles(({ colors }) => ({
row: {
flexDirection: 'row',
alignItems: 'center',
gap: 8,
},
text: {
...type.bodySmall,
color: colors.tertiary,
flexShrink: 1,
},
}))