'use client';

import { TasksProvider } from '@/contexts/TasksContext';
import ManagerWeeklySummary from '@/components/dashboard/ManagerWeeklySummary';
import { ManagerSummary } from '@/services/analytics/manager-summary';
import { Task, Tag } from '@/lib/types';

interface WeeklyManagerPageClientProps {
  initialSummary: ManagerSummary;
  initialTasks: Task[];
  initialTags: (Tag & { usage: number })[];
}

export function WeeklyManagerPageClient({
  initialSummary,
  initialTasks,
  initialTags,
}: WeeklyManagerPageClientProps) {
  return (
    <TasksProvider initialTasks={initialTasks} initialTags={initialTags}>
      <ManagerWeeklySummary initialSummary={initialSummary} />
    </TasksProvider>
  );
}
