forked from crowetic/commerce
16 lines
286 B
TypeScript
16 lines
286 B
TypeScript
export const searchByProductType = (search?: string) => {
|
|
return search
|
|
? {
|
|
query: `product_type:${search}`,
|
|
}
|
|
: {}
|
|
}
|
|
|
|
export const searchByTag = (categoryPath?: string) => {
|
|
return categoryPath
|
|
? {
|
|
query: `tag:${categoryPath}`,
|
|
}
|
|
: {}
|
|
}
|