diff --git a/src/components/Activity/ActivityCounters.tsx b/src/components/Activity/ActivityCounters.tsx new file mode 100644 index 000000000..f647761ca --- /dev/null +++ b/src/components/Activity/ActivityCounters.tsx @@ -0,0 +1,56 @@ +type ActivityCountersType = { + done: { + today: number; + total: number; + }; + learning: { + today: number; + total: number; + }; + streak: { + count: number; + }; +}; + +type ActivityCounterType = { + text: string; + count: string; +}; + +function ActivityCounter(props: ActivityCounterType) { + const { text, count } = props; + + return ( +
{text}
++ Progress will appear here as you start tracking your{' '} + + Roadmaps + {' '} + or{' '} + + Best Practices + {' '} + progress. +
++ + {doneCount} done • + { learningCount > 0 && <>{learningCount} in progress •> } + { skippedCount > 0 && <>{skippedCount} skipped •> } + {totalCount} total + + {!isConfirming && ( + + )} + + {isConfirming && ( + + Are you sure?{' '} + Sure?{' '} + {' '} + + + )} +
+Topics Completed
-Currently Learning
-Learning Streak
-