"use client"; import { useReadAllContactUs } from "@/hooks/queries/useContactUsQuery"; import { usePathname, useRouter } from "next/navigation"; export const useContactUsListPresenter = () => { const columns: string[] = [ "row", "Full name", "email", "status", "phone", "created at", "actions", ]; const pathname = usePathname(); const router = useRouter(); const { data, isPending } = useReadAllContactUs(); return { columns, pathname, router, isPending, contacts: data?.data.contacts, }; };