import * as O from 'fp-ts/Option';
import benefitsApi from '../apis/benefits-api/benefits.api';
export class BenefitsService {
  async getViewPageState() {
    return benefitsApi.getBenefitsAsync();
  }
  async getShopifyUrl() {
    return O.fromNullable((await benefitsApi.getShopifyUrl()).redirectUrl);
  }
}
export default new BenefitsService();
