(up: boolean)
| 120 | ): void => set(open ? { open, article: { url }, fromFeed } : closed); |
| 121 | |
| 122 | export const setReadingUp = (up: boolean): void => { |
| 123 | if (!state.open || !!state.up === up) { |
| 124 | return; |
| 125 | } |
| 126 | set({ ...state, up }); |
| 127 | }; |
| 128 | |
| 129 | export const updateReadingArticle = (article: ReadingArticle): void => { |
| 130 | if (!state.open) { |