import { useState } from 'react' import { Card, CardContent, CardHeader, CardTitle } from './card' import { Badge } from './badge' import { Checkbox } from './checkbox' import { Button } from './button' import { Pencil, Trash2 } from 'lucide-react' import { motion } from 'framer-motion' interface TaskCardProps { id: string title: string description?: string category: string completed: boolean onComplete: (id: string, completed: boolean) => void onDelete: (id: string) => void onEdit: (id: string) => void } export function TaskCard({ id, title, description, category, completed, onComplete, onDelete, onEdit, }: TaskCardProps) { return (
onComplete(id, checked as boolean)} /> {title}
{description &&

{description}

} {category}
) }