2d664795ad
This commit introduces a new "Calls" section to the main sidebar navigation to provide users with access to call logs. - Adds a new collapsible "Calls" menu item to the sidebar configuration. - Includes sub-links for "All Calls", "Incoming", "Outgoing", and "Missed" calls. - Creates new custom icons (GlobeSearch, CallIncome, CallMade, CallMissed, CallReceived) to support the new menu items. - Updates `apexcharts` and `react-apexcharts` dependencies to newer versions.
14 lines
418 B
TypeScript
14 lines
418 B
TypeScript
import { API_ENDPOINTS } from "@/lib/api";
|
|
import { contactUsService } from "@/lib/api/services/contact-us-service";
|
|
import { useQuery } from "@tanstack/react-query";
|
|
import { useMemo } from "react";
|
|
|
|
export const useReadAllContactUs = () => {
|
|
const queryKey = useMemo(() => [API_ENDPOINTS.CONTACT_US.READ_ALL], []);
|
|
|
|
return useQuery({
|
|
queryKey,
|
|
queryFn: () => contactUsService.getAllContactUs(),
|
|
});
|
|
};
|