To use the Inventory API, install the @wix/stores package using npm or Yarn:
@wix/stores
or
Then import { inventory } from @wix/stores:
{ inventory }