import React, { useState } from 'react'; import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from '@/components/ui/dialog'; import { Button } from '@/components/ui/button'; import { Mail, Phone, Send, CheckCircle2 } from 'lucide-react'; export default function MessageCandidateModal({ open, onClose, application }) { const [channel, setChannel] = useState('message'); const [message, setMessage] = useState(''); const [sent, setSent] = useState(false); const handleSend = () => { setSent(true); setTimeout(() => { setSent(false); setMessage(''); onClose(); }, 1500); }; return ( !v && onClose()}> Message {application?.applicant_name} {sent ? (

Message sent!

) : (
{channel === 'call' ? (
Calling {application?.phone || 'candidate'}...
) : (