import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faArrowDown } from '@fortawesome/free-solid-svg-icons' interface PullToRefreshIndicatorProps { isPulling: boolean pullDistance: number canRefresh: boolean isRefreshing: boolean threshold?: number } const PullToRefreshIndicator: React.FC = ({ isPulling, pullDistance, canRefresh, threshold = 80 }) => { // Only show when actively pulling, not when refreshing if (!isPulling) return null const opacity = Math.min(pullDistance / threshold, 1) const rotation = (pullDistance / threshold) * 180 return (
{canRefresh ? 'Release to refresh' : 'Pull to refresh'}
) } export default PullToRefreshIndicator