To use the CurrentCart API, install the @wix/ecom package using npm or Yarn:
@wix/ecom
or
Then import { currentCart } from @wix/ecom:
{ currentCart }