Vista (intefaz y bd), esquema y endpoints de store agregados

This commit is contained in:
2025-07-02 15:10:54 -04:00
parent f5962efb8b
commit 365cbd0d7a
19 changed files with 1909 additions and 76 deletions

View File

@@ -1,8 +1,12 @@
'use client'
import { useSafeQuery } from "@/hooks/use-safe-query";
import { getInventoryAction} from "../actions/actions";
import { getInventoryAction, getAllProducts } from "../actions/actions";
// Hook for users
export function useProductQuery(params = {}) {
return useSafeQuery(['product',params], () => getInventoryAction(params))
}
export function useAllProductQuery(params = {}) {
return useSafeQuery(['product',params], () => getAllProducts(params))
}