To use the SenderDetails API, install the @wix/email-marketing package using npm or Yarn:
@wix/email-marketing
or
Then import { senderDetails } from @wix/email-marketing:
{ senderDetails }