import React from "react"; import { FaTimes, FaBriefcase, FaBuilding, FaUsers, FaDollarSign, FaClock, } from "react-icons/fa"; import { JobPositionDto } from "../../../types/hr"; import { getJobLevelColor, getJobLevelText } from "../../../utils/erp"; interface JobPositionViewModalProps { isOpen: boolean; onClose: () => void; position: JobPositionDto | null | undefined; } const JobPositionViewModal: React.FC = ({ isOpen, onClose, position, }) => { if (!isOpen || !position) return null; return (

{position.name}

{position.code}

{/* Status and Level */}
{getJobLevelText(position.level)} {position.isActive ? "Aktif" : "Pasif"}
{/* Basic Information */}

Temel Bilgiler

Departman

{position.department?.name || "Belirtilmemiş"}

Mevcut Personel

{position.employees?.length || 0} kişi

Maaş Aralığı

{position.minSalary.toLocaleString()} -{" "} {position.maxSalary.toLocaleString()}{" "} {position.currency}

Oluşturulma Tarihi

{position.creationTime.toLocaleDateString("tr-TR")}

Açıklama

{position.description || "Açıklama bulunmuyor."}

{/* Skills */} {position.requiredSkills && position.requiredSkills.length > 0 && (

Gerekli Yetenekler

{position.requiredSkills.map((skill, index) => ( {skill} ))}
)} {/* Responsibilities */} {position.responsibilities && position.responsibilities.length > 0 && (

Sorumluluklar

{position.responsibilities.map((responsibility, index) => (

{responsibility}

))}
)} {/* Qualifications */} {position.qualifications && position.qualifications.length > 0 && (

Nitelikler

{position.qualifications.map((qualification, index) => (

{qualification}

))}
)} {/* Employees in this position */} {position.employees && position.employees.length > 0 && (

Bu Pozisyondaki Personeller

{position.employees.map((employee, index) => (

{employee.fullName}

{employee.email}

))}
)}
); }; export default JobPositionViewModal;