To use the Discount API, install the @wix/restaurants package using npm or Yarn:
@wix/restaurants
or
Then import { discount } from @wix/restaurants:
{ discount }