import BaseRepository from '@/repositories/BaseRepository' ; import store from '@/store' ; import { ICartItem } from '@/entities/Cart' ; export default class CartRepository implements BaseRepository { constructor ( ) { } getItems ( ) { return store . state . cart . cart . items ; } isCheckingOut ( ) { return store . state . cart . isCheckingOut ; } }