import React, { useState } from 'react'; import { CheckCircleIcon, XMarkIcon } from '@heroicons/react/24/outline'; interface EnhancedCompletionModalProps { isOpen: boolean; onClose: () => void; onConfirm: (notes?: string) => void; choreTitle: string; userName: string; } const EnhancedCompletionModal: React.FC = ({ isOpen, onClose, onConfirm, choreTitle, userName, }) => { const [notes, setNotes] = useState(''); const [isSubmitting, setIsSubmitting] = useState(false); if (!isOpen) return null; const handleConfirm = async () => { setIsSubmitting(true); try { await onConfirm(notes.trim() || undefined); setNotes(''); } finally { setIsSubmitting(false); } }; const handleClose = () => { setNotes(''); onClose(); }; return (
{/* Backdrop */}
{/* Modal */}
{/* Close button */} {/* Icon */}
{/* Title */}

Complete Chore?

{/* Chore Info */}

Chore

{choreTitle}

Completed by: {userName}

{/* Notes Field */}