![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/domains/lavocat.ca/private_html/src/components/ |
import React from 'react';
interface RegistrationDetailModalProps {
isOpen: boolean;
onClose: () => void;
registration: any; // Replace 'any' with your actual registration type if available
}
const RegistrationDetailModal: React.FC<RegistrationDetailModalProps> = ({ isOpen, onClose, registration }) => {
if (!isOpen) return null;
return (
<div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
<div className="bg-white p-6 rounded-lg shadow-lg max-w-md w-full">
<h2 className="text-xl font-bold mb-4">Registration Details</h2>
<p>Registration ID: {registration?.id || 'N/A'}</p>
<p>Name: {registration?.name || 'N/A'}</p>
<p>Email: {registration?.email || 'N/A'}</p>
<p>Phone: {registration?.phone || 'N/A'}</p>
<p>Relationship: {registration?.relationship || 'N/A'}</p>
<p>Message: {registration?.message || 'N/A'}</p>
<p>Date: {registration?.date || 'N/A'}</p>
<p>Status: {registration?.status || 'N/A'}</p>
<button
onClick={onClose}
className="mt-4 bg-gray-200 hover:bg-gray-300 px-4 py-2 rounded"
>
Close
</button>
</div>
</div>
);
};
export default RegistrationDetailModal;