MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / StatsGrids

Function StatsGrids

frontend/src/components/stats/StatsGrids.tsx:13–31  ·  view source on GitHub ↗
({ stats }: StatsGridsProps)

Source from the content-addressed store, hash-verified

11}
12
13export default function StatsGrids({ stats }: StatsGridsProps) {
14 const { t } = useTranslation()
15 return (
16 <>
17 <SimpleGrid columns={{ base: 1, md: 2 }} gap={6} mb={6}>
18 <PracticeBarChart sessions={stats.recent_sessions} />
19 <PerformanceChart sessions={stats.recent_sessions} />
20 </SimpleGrid>
21 <SimpleGrid columns={{ base: 1, md: 2 }} gap={6}>
22 <MasteryDonutChart
23 recentSessions={stats.recent_sessions}
24 collectionInfo={stats.collection_info}
25 title={t('components.stats.latestSessionBreakdown')}
26 />
27 <MostFailedCards cards={stats.difficult_cards} />
28 </SimpleGrid>
29 </>
30 )
31}

Callers

nothing calls this directly

Calls 1

tFunction · 0.85

Tested by

no test coverage detected