import type { ReactNode } from 'react'; import type { StackProps } from '@mui/material/Stack'; export interface ScrollLoaderProps extends StackProps { /** Called when the user scrolls near the bottom — must return a Promise */ loadMoreItems: () => Promise; /** True while the initial data is loading (suppresses the initial auto-check) */ isLoading?: boolean; /** Whether there are more pages to fetch */ hasMore?: boolean; /** True while a next-page request is in-flight */ isFetchingNextPage: boolean; children?: ReactNode; }