"use client"; import React from "react"; import { Pencil, Plus } from "lucide-react"; // Define types interface CardData { id: number; title: string; description: string; status: string; lastUpdated: string; } interface CardProps { data: CardData; onUpdate: (id: number) => void; } // Mock data const mockData: CardData[] = [ { id: 1, title: "Project Alpha", description: "A cutting-edge project for automation", status: "In Progress", lastUpdated: "2024-03-15", }, { id: 2, title: "Project Beta", description: "Machine learning integration project", status: "Completed", lastUpdated: "2024-03-10", }, { id: 3, title: "Project Gamma", description: "Cloud infrastructure optimization", status: "Planning", lastUpdated: "2024-03-05", }, ]; // Card component const Card: React.FC = ({ data, onUpdate }) => (

{data.title}

{data.description}

Status: {data.status} Last Updated: {data.lastUpdated}
); function app000002() { const handleUpdate = (id: number) => { console.log(`Update clicked for item ${id}`); // Add your update logic here }; const handleCreate = () => { console.log("Create clicked"); // Add your create logic here }; return (

Projects Dashboard

{mockData.map((item) => ( ))}
); } export default app000002;