import PullToRefresh from 'react-pull-to-refresh' import { ReactNode } from 'react' /** * Invisible pull-to-refresh wrapper used on list pages. * The component stays visually transparent; when the user * drags down from the very top it calls the provided async * refresh callback and silently resolves. */ export const PullToRefreshWrapper = ({ onRefresh, children }: { onRefresh: () => Promise; children: ReactNode }) => { return ( {children} ) }