(index: number)
| 182 | ); |
| 183 | |
| 184 | const onOpenModal = (index: number) => { |
| 185 | if (!pmid) { |
| 186 | scrollPositionOnFeed.current = window.scrollY; |
| 187 | } |
| 188 | |
| 189 | onChangeSelected(index); |
| 190 | }; |
| 191 | |
| 192 | const getPostPosition = () => { |
| 193 | const firstPost = items.findIndex(isPostItem); |