'use client' interface LoadLatestButtonProps { /** Number of fresh posts waiting to be loaded. */ count: number /** Invoked when the user taps the pill: scroll to top + refetch first page. */ onPress: () => void } /** * Floating "New posts" pill, ported from Bluesky's LoadLatestBtn to the * product's stack (Tailwind + CSS variables instead of react-native-reanimated). * * Surfaces content that arrived after the feed was rendered. The host feed is * responsible for detecting new posts (poll / realtime) and supplying `count`; * this component is purely presentational so it stays small and testable. */ export default function LoadLatestButton({ count, onPress }: LoadLatestButtonProps) { if (count <= 0) return null const label = count === 1 ? '1 new post' : `${count} new posts` return (