(postId: string)
| 184 | }; |
| 185 | |
| 186 | export const takeReadingOpen = (postId: string): string | null => { |
| 187 | const pending = pendingOpen; |
| 188 | pendingOpen = null; |
| 189 | return pending?.post.id === postId ? pending.url : null; |
| 190 | }; |
| 191 | |
| 192 | export const useReading = (): ReadingState => |
| 193 | useSyncExternalStore( |