1 | import { useStore } from 'effector-react' |
||
2 | import { PageChangeAnimation } from 'entities/PageChangeAnimation' |
||
3 | import { MoviesCardsGrid } from 'entities/MoviesCardsGrid' |
||
4 | import { Pagination } from 'feature/pagination' |
||
5 | import { $page } from 'feature/pagination/model' |
||
6 | |||
7 | const Main = () => { |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
8 | const page = useStore($page) |
||
9 | |||
10 | return ( |
||
11 | <> |
||
0 ignored issues
–
show
|
|||
12 | <PageChangeAnimation keyProp={page} timeout={500} classNames="fade"> |
||
0 ignored issues
–
show
|
|||
13 | <MoviesCardsGrid currentPage={page} /> |
||
0 ignored issues
–
show
|
|||
14 | </PageChangeAnimation> |
||
15 | <Pagination /> |
||
0 ignored issues
–
show
|
|||
16 | </> |
||
17 | ) |
||
18 | } |
||
19 | |||
20 | export { Main } |
||
21 |