/* eslint-disable @typescript-eslint/no-explicit-any */ import React from "react"; type ProfileInfoCardProps = { allData: any; // Replace `any` with actual type of allData if known profilePicError: boolean; imagePreview: string | null; handleFileChange: any; setFieldValue: any; values: Record; // You can replace `Record` with a specific shape if known getFormattedAddress: (address?: string) => string; primaryAddressPhone?: string; }; const ProfileInfoCard: React.FC = ({ allData, profilePicError, imagePreview, handleFileChange, setFieldValue, values, getFormattedAddress, primaryAddressPhone }) => { return (
document.getElementById("profilePicture")?.click()} > handleFileChange(e, setFieldValue, values)} style={{ display: "none" }} />

{allData?.firstName} {allData?.lastName}{" "} {allData?.vatNumber ? `(${allData?.vatNumber})` : ""}

{allData?.companyName} {allData?.companyRegistrationNumber ? ` - ${allData?.companyRegistrationNumber}` : ""} {allData?.shortCode ? `(${allData?.shortCode})` : ''}

{(allData?.phone || primaryAddressPhone) ? : ""} {primaryAddressPhone || allData?.phone}

{allData?.email ? : ""} {allData?.email}

{/* */}

{getFormattedAddress() ? ( <> {/* Box Icon */} ) : ( "" )} {getFormattedAddress()}

{allData?.address ? (

{/* Box Icon {getFullAddress(initialValues)} */}

) : ( "" )}
); }; export default ProfileInfoCard;