'use client'; import { StatsCards } from '@/components/dashboard/stats-cards'; import { RecentActivity } from '@/components/dashboard/recent-activity'; import { PendingTasks } from '@/components/dashboard/pending-tasks'; import { QuickActions } from '@/components/dashboard/quick-actions'; import { useDashboardStats, useRecentActivity, usePendingTasks } from '@/hooks/use-dashboard'; import { useProjectStore } from '@/lib/stores/project-store'; export default function DashboardPage() { const selectedProjectId = useProjectStore((state) => state.selectedProjectId); const { data: stats, isLoading: statsLoading } = useDashboardStats(selectedProjectId); const { data: activities, isLoading: activityLoading } = useRecentActivity(selectedProjectId); const { data: tasks, isLoading: tasksLoading } = usePendingTasks(selectedProjectId); return (
Welcome back! Here's an overview of your project status.