8 lines
344 B
TypeScript
8 lines
344 B
TypeScript
import { getStoreCategories } from '@/api/categories'
|
|
|
|
/** تبهای فیلتر محصول — فقط از API دستهبندی (هماهنگ با پنل ادمین) */
|
|
export async function loadProductCategoryTabNames(): Promise<string[]> {
|
|
const categories = await getStoreCategories()
|
|
return categories.map((item) => item.name)
|
|
}
|