import { GetterTree, Getter } from 'vuex' import { State } from './index' // const cartProducts: Getter = (state: State) => { // return state.cart.added.map((shape) => { // const product = state.products.all.find((p) => p.id === shape.id) // if (product) { // const cartProduct: CartProduct = { // title: product.title, // price: product.price, // quantity: shape.quantity, // } // return cartProduct // } // }) // } const getterTree: GetterTree = { } export default getterTree