'use client' import { useState } from 'react' import { HelpCircle, X } from 'lucide-react' import { useLanguage } from '@/lib/i18n' import type { DashboardWidgetId } from '@/lib/dashboard/layout' interface DashboardWidgetHelpProps { widgetId: DashboardWidgetId className?: string } export function DashboardWidgetHelp({ widgetId, className = '' }: DashboardWidgetHelpProps) { const { t } = useLanguage() const [open, setOpen] = useState(false) const helpKey = `homeDashboard.widgetHelp.${widgetId}` const text = t(helpKey) if (text === helpKey) return null return (
{t(`homeDashboard.widgets.${widgetId}`)}
{text}