'use client'; import Link from 'next/link'; import { FolderKanban, Plus } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; import { useProjects } from '@/lib/hooks/use-projects'; export default function DashboardPage() { const { data: projects } = useProjects(); return (

Dashboard

Welcome to ColaFlow - Your AI-powered project management system

Total Projects
{projects?.length || 0}

Active projects in your workspace

Active Projects
{projects?.filter((p) => p.status === 'Active').length || 0}

Currently in progress

Quick Actions
Recent Projects Your most recently updated projects {projects && projects.length > 0 ? (
{projects.slice(0, 5).map((project) => (

{project.name}

{project.key}

{project.status}
))}
) : (

No projects yet. Create your first project to get started.

)}
); }