import { useAnnotationRepoStore } from "../annotation_repo/AnnotationRepoStore" ; import { Route , Switch } from "react-router-dom" ; import { ReactRouters } from "../../../../web/js/react/router/ReactRouters" ; import { LeftSidebar } from "../../../../web/js/ui/motion/LeftSidebar" ; import { ReviewerScreen } from "./ReviewerScreen" ; import * as React from "react" ; import { NULL_FUNCTION } from "polar-shared/src/util/Functions" ; export const ReviewRouter = ( ) => { const store = useAnnotationRepoStore ( [ 'view' ] ) ; return ( < Switch location = { ReactRouters . createLocationWithHashOnly ( ) } > { } < Route path = '#folders' render = { ( ) => ( < LeftSidebar onClose = { NULL_FUNCTION } > < > < /> < /LeftSidebar>)}/ > { } { } { } { } < Route path = '#review-flashcards' > < ReviewerScreen mode = "flashcard" annotations = { store . view } / > < /Route> < Route path = '#review-reading' > < ReviewerScreen mode = "reading" annotations = { store . view } / > < /Route> < /Switch>); } ;