(items)
| 34 | }; |
| 35 | |
| 36 | export function csvItems(items) { |
| 37 | return items.map(item => { |
| 38 | const { name, product_name, weight, weight_unit, price, Category: { name: category } } = item; |
| 39 | return { name, product_name, category, weight, weight_unit, price }; |
| 40 | }) |
| 41 | } |