import { SpacedRepStats , StatType } from "polar-firebase/src/firebase/om/SpacedRepStats" ; import { Firebase } from "../../../../web/js/firebase/Firebase" ; import { RepetitionMode } from "polar-spaced-repetition-api/src/scheduler/S2Plus/S2Plus" ; import { FirestoreCollections } from "./FirestoreCollections" ; export class ReviewerStatistics { public static async statistics ( mode , type ) { await FirestoreCollections . configure ( ) ; const uid = await Firebase . currentUserID ( ) ; if ( ! uid ) { return [ ] ; } const records = await SpacedRepStats . list ( uid , mode , type ) ; return records ; } }