Files
ghatreh_user/src/utils/categoryTabs.ts
T

8 lines
344 B
TypeScript
Raw Normal View History

2026-06-13 18:03:15 +03:30
import { getStoreCategories } from '@/api/categories'
/** تب‌های فیلتر محصول — فقط از API دسته‌بندی (هماهنگ با پنل ادمین) */
export async function loadProductCategoryTabNames(): Promise<string[]> {
const categories = await getStoreCategories()
return categories.map((item) => item.name)
}