export interface Pug {
isBottom?: boolean
onChangeLimit: any
}
const onChangeLimit = useCallback((page: number) => {
if (faq.isPending) return;
setData(prev => ({
...prev,
currentPage: page,
}));
}, [data]);
const Pagination = (props: Pug) => { ... }