diff --git a/src/app/(dashboard)/absensi/page.tsx b/src/app/(dashboard)/absensi/page.tsx new file mode 100644 index 0000000..5bcfc9e --- /dev/null +++ b/src/app/(dashboard)/absensi/page.tsx @@ -0,0 +1,106 @@ +"use client" +import { useAppSelector } from "@/lib/hooks"; +import { useGetAttendanceRangeQuery, useGetMonthlyAttendanceQuery, useGetOrganizationAttendanceQuery } from "@/services/api"; +import { ExclamationCircleIcon } from "@heroicons/react/24/outline"; +import { BarChart, ChartsTooltip, LineChart, pieArcClasses, pieArcLabelClasses, PieChart } from "@mui/x-charts"; +import { ChartsNoDataOverlay } from "@mui/x-charts/ChartsOverlay"; +import { formatDate } from "date-fns"; + +export default function AbsensiPage() { + const filter = useAppSelector(state => state.filter.filter); + const {data: attendanceSummary} = useGetOrganizationAttendanceQuery(filter); + const {data: attendanceRange} = useGetAttendanceRangeQuery(filter); + const {data: montlyAttendance} = useGetMonthlyAttendanceQuery(filter); + + return ( +