(up: boolean)
| 130 | ): void => set(open ? { open, article: { url }, fromFeed } : closed); |
| 131 | |
| 132 | export const setReadingUp = (up: boolean): void => { |
| 133 | if (!state.open || !!state.up === up) { |
| 134 | return; |
| 135 | } |
| 136 | set({ ...state, up }); |
| 137 | }; |
| 138 | |
| 139 | export const updateReadingArticle = (article: ReadingArticle): void => { |
| 140 | if (!state.open) { |