import { Dispatch, FC, MouseEvent, SetStateAction, Suspense, lazy } from 'react'; import dayjs from 'dayjs'; import { Dialog, DialogContent, DialogFooter, DialogTitle } from '@/components/ui/dialog'; import { Button } from '@/components/ui/button'; import { Card, Card900, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; import LazyLoading from '@/components/loader/LazyLoading'; import ViewAvatar from '@/components/ViewAvatar'; import { type IUser } from '../type'; const DonutChart = lazy(() => import('./DonutChart')); const AreaChart = lazy(() => import('./AreaChart')) const TableAttendanceHistory = lazy(() => import('./Table')) const ExportComponent = lazy(() => import('@/app/admin/report/history/component/Export')) type Props = { open: boolean onOpenChange: Dispatch> data: IUser onClose: (e: MouseEvent) => any }; const EmployeePerformance: FC = ({ open, onOpenChange, data, onClose }) => { return ( <>
{data.fullname}
Position {data.position?.name}
NIKTG {data.niktg || '-'}
NIK {data.nik || '-'}
Employee Type {data.employee_type?.name || '-'}
Phone {data.phone_number}
Hire Date {data.hire_date ? dayjs(data.hire_date).format('MMM DD, YYYY') : '-'}
Contract Expiration Date {data.contract_expiration_date ? dayjs(data.contract_expiration_date).format('MMM DD, YYYY') : '-'}
Working Hour in this Month
{'0 Hour'}

number of working hours in this month

Total OvertIme
{'0 Hour'}

in the Past 30 Days (Weekend Only)

Total Task | On Progress | Done
- | - | -

in the Past 30 Days

Coming soon

Average Check IN | Check OUT
--:-- | --:--

in the Past 30 Days

Total Leave | Sick | Permit

in the Past 30 Days

}>
Total WFO | WFS | WFH

in the Past 30 Days

}>
Attendance Statistics Statistics of your attendance in last 30 days. }>
Attendance History Here's a list of your attendance history in the Past 30 Days!
}>
}>
); } export default EmployeePerformance;