To use the Wix Stores Cart API, import { cart } from the wix-stores-frontend module:
{ cart }
wix-stores-frontend
1