import React from 'react'; import { User, Users } from 'lucide-react'; import { UseFormRegister, FieldErrors } from 'react-hook-form'; interface FormData { customerName: string; customerEmail: string; participantsCount: number; } interface CustomerDetailsProps { register: UseFormRegister; errors: FieldErrors; participantsCount: number; onParticipantsCountChange: (count: number) => void; } const CustomerDetails: React.FC = ({ register, errors, participantsCount, onParticipantsCountChange, }) => { return (

Your Details

{errors.customerName && (

{errors.customerName.message}

)}
{errors.customerEmail && (

{errors.customerEmail.message}

)}
{participantsCount}
participant{participantsCount > 1 ? 's' : ''}
); }; export default CustomerDetails;