'use client' import { motion } from 'motion/react' import { Inbox, GraduationCap, Bell, Sparkles, Layers } from 'lucide-react' import { useLanguage } from '@/lib/i18n' export interface DashboardActionStripProps { inboxCount: number dueFlashcards: number reminderCount: number discoveryCount: number themeCount: number inboxPulse?: number onInbox: () => void onReview: () => void onReminders: () => void onDiscoveries: () => void onThemes: () => void prefersReducedMotion?: boolean } export function DashboardActionStrip({ inboxCount, dueFlashcards, reminderCount, discoveryCount, themeCount, inboxPulse = 0, onInbox, onReview, onReminders, onDiscoveries, onThemes, prefersReducedMotion, }: DashboardActionStripProps) { const { t } = useLanguage() const items = [ { key: 'inbox', icon: Inbox, label: t('homeDashboard.inbox'), value: inboxCount, onClick: onInbox, accent: inboxCount > 0, pulse: inboxPulse > 0, }, { key: 'review', icon: GraduationCap, label: t('homeDashboard.review'), value: dueFlashcards, onClick: onReview, accent: dueFlashcards > 0, }, { key: 'reminders', icon: Bell, label: t('homeDashboard.reminders'), value: reminderCount, onClick: onReminders, accent: reminderCount > 0, }, { key: 'discoveries', icon: Sparkles, label: t('homeDashboard.aiFound'), value: discoveryCount, onClick: onDiscoveries, accent: discoveryCount > 0, }, { key: 'themes', icon: Layers, label: t('homeDashboard.themes'), value: themeCount, onClick: onThemes, accent: themeCount > 0, }, ] return (
{item.value}
{item.label}