{"version":3,"file":"getFirstPageLoadError.mjs","names":[],"sources":["../../../../src/components/Loading/getFirstPageLoadError.ts"],"sourcesContent":["import type { PaginatorState } from 'stream-chat';\n\n/**\n * The error of a paginated list's failed first page: nothing is loaded, no query is running and\n * the last query failed. `undefined` otherwise, including while a retry runs.\n */\nexport const getFirstPageLoadError = <T>({\n  isLoading,\n  items,\n  lastQueryError,\n}: PaginatorState<T>): Error | undefined =>\n  items === undefined && !isLoading ? lastQueryError : undefined;\n"],"mappings":";;;;;AAMA,IAAa,yBAA4B,EACvC,WACA,OACA,qBAEA,UAAU,KAAA,KAAa,CAAC,YAAY,iBAAiB,KAAA"}