To use the Categories API, install the @wix/blog package using npm or Yarn:
@wix/blog
or
Then import { categories } from @wix/blog:
{ categories }