mirror of
https://github.com/warmbly/warmbly.git
synced 2026-11-17 16:19:13 +00:00
10 lines
316 B
TypeScript
10 lines
316 B
TypeScript
import { useQuery } from "@tanstack/react-query";
|
|
import getDirectMail from "@/lib/api/client/app/analytics/getDirectMail";
|
|
|
|
export default function useDirectMail(period: string = "7d") {
|
|
return useQuery({
|
|
queryKey: ["analytics", "direct", period],
|
|
queryFn: () => getDirectMail(period),
|
|
})
|
|
}
|