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