import { RefreshCw } from 'lucide-react'; import { PULL_THRESHOLD, type PullState } from '../usePullToRefresh'; /** * The round glass badge under the top bar that a pull-to-refresh reveals: it * fades in and turns with the pull, and spins while the page reloads. */ export default function MPullIndicator({ state, label }: { state: PullState; label: string }) { const progress = Math.min(1, state.distance / PULL_THRESHOLD); const visible = state.refreshing || state.distance > 4; return (