+
+ {employee.type}
+
+
{employee.name}
+
+ {employee.department}
+
+
+ {employee.position}
+
+
+ {employee.hireDate}
+
+
+ {page === 'admin-duty' && 'date' in employee ? (
+
+ {employee.date}
+
+ ) : 'startDate' in employee && 'endDate' in employee ? (
+
+ ) : null}
+
+
+ {(() => {
+ if (employee.status === '대기중') {
+ return (
+
+ {employee.status}
+
+ );
+ } else if (employee.status === '거절됨') {
+ return (
+
+ {employee.status}
+
+ );
+ } else if (employee.status === '취소') {
+ return (
+
+ {employee.status}
+
+ );
+ } else {
+ return (
+
+ {employee.status}
+
+ );
+ }
+ })()}
+
+
+
+ {employee.status === '대기중' && (
+ <>
+
+
+ >
+ )}
+
+
+ ))}
+ >
+ )}
+