8 lines
270 B
TypeScript
8 lines
270 B
TypeScript
'use client'
|
|
import { useSafeQuery } from "@/hooks/use-safe-query";
|
|
import { getInventoryAction} from "../actions/actions";
|
|
|
|
// Hook for users
|
|
export function useProductQuery(params = {}) {
|
|
return useSafeQuery(['product',params], () => getInventoryAction(params))
|
|
} |