import React from "react"; import { useProfile } from "../../hooks/useProfile"; const EmpOverview = ({ profile }) => { const { loggedInUserProfile } = useProfile(); return (
{/* About Heading */} About {/* Full Name */}
Full Name : {profile?.firstName || NA} {profile?.lastName || ""}
{/* Status */}
Status : Active
{/* Role */}
Role : {profile?.jobRole || NA}
{/* Gender */}
Gender : {profile?.gender || NA}
{/* Birth Date */}
Birth Date : {profile?.birthDate ? new Date(profile.birthDate).toLocaleDateString() : NA}
{/* Joining Date */}
Joining Date : {profile?.joiningDate ? new Date(profile.joiningDate).toLocaleDateString() : NA}
{/* Contacts Heading */} Contacts {/* Contact Number */}
Contact : {profile?.phoneNumber || NA}
{/* Email */}
Email : {profile?.email ? ( {profile.email} ) : ( NA )}
{/* Emergency Contact */}
Emergency Contact : {profile?.emergencyContactPerson || NA}
{/* Emergency Phone */}
Emergency Phone : {profile?.emergencyPhoneNumber || NA}
{/* Address */}
Address : {profile?.currentAddress || NA}
); }; export default EmpOverview;