Merge remote-tracking branch 'origin/main' into efril

This commit is contained in:
efrilm
2025-08-14 00:11:27 +07:00
29 changed files with 440 additions and 209 deletions
+2 -3
View File
@@ -1,15 +1,14 @@
import { useQuery } from '@tanstack/react-query'
import { Product, Products } from '../../types/services/product'
import { api } from '../api'
import { ProductRecipe } from '../../types/services/productRecipe'
interface ProductsQueryParams {
export interface ProductsQueryParams {
page?: number
limit?: number
search?: string
// Add other filter parameters as needed
category_id?: string
is_active?: boolean
is_active?: boolean | string
}
export function useProducts(params: ProductsQueryParams = {}) {