This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Check that result of Promise.allSettled is fulfilled | |
*/ | |
export function isFulfilled<T>( | |
promiseSettledResult: PromiseSettledResult<T>, | |
): promiseSettledResult is PromiseFulfilledResult<T> { | |
return promiseSettledResult.status === "fulfilled" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use client"; | |
... | |
export function Pagination<T>({ | |
results, | |
startKey, | |
limit, | |
}: { | |
results: T[]; |