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

Function StatCard

frontend/src/components/stats/StatsSummaryGrid.tsx:15–36  ·  view source on GitHub ↗
({ label, value, helpText, tooltip, valueColor }: StatCardProps)

Source from the content-addressed store, hash-verified

13}
14
15const StatCard = ({ label, value, helpText, tooltip, valueColor }: StatCardProps) => {
16 return (
17 <Box p={4} borderWidth="1px" borderRadius="lg" bg="bg.50">
18 <Text fontSize="sm" color="gray.500" mb={1}>
19 {label}
20 </Text>
21 <Text fontSize="2xl" fontWeight="bold" color={valueColor}>
22 {value}
23 </Text>
24 {helpText && (
25 <Text fontSize="xs" color="gray.500" mt={1}>
26 {helpText}
27 </Text>
28 )}
29 {tooltip && (
30 <Text fontSize="xs" color="gray.500" mt={1}>
31 {tooltip}
32 </Text>
33 )}
34 </Box>
35 )
36}
37
38interface StatsSummaryGridProps {
39 collectionInfo: CollectionBasicInfo

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected