const [ page, setPage ] = useState( 0 )
const nexPage = async () => {
if ( lastPage === false ) {
setPage( page + 1 )
const data = {
id: props.id,
domain: props.domain,
offset: ( page + 1 ) * +props.count,
count: props.count,
filter: props.filterChecked,
}
dispatch( choiceImg( data ) )
}
}