import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faArrowRotateRight } from '@fortawesome/free-solid-svg-icons' interface RefreshIndicatorProps { isRefreshing: boolean pullPosition: number } const THRESHOLD = 80 /** * Simple pull-to-refresh visual indicator */ const RefreshIndicator: React.FC = ({ isRefreshing, pullPosition }) => { const isVisible = isRefreshing || pullPosition > 0 if (!isVisible) return null const opacity = Math.min(pullPosition / THRESHOLD, 1) const translateY = isRefreshing ? THRESHOLD / 3 : pullPosition / 3 return (
) } export default RefreshIndicator