// src/api/promoApi.js import odooApi from '@/core/api/odooApi'; export const fetchPromoItems = async (type) => { try { const response = await odooApi('GET', `/api/v1/program-line?type=${type}&limit=3`); return response.map((item) => ({ value: item.id, label: item.name, product: item.products ,price:item.price})); } catch (error) { console.error('Error fetching promo items:', error); return []; } };