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