To use the Attachments API, install the @wix/crm package using npm or Yarn:
@wix/crm
or
Then import { attachments } from @wix/crm:
{ attachments }