import { isRpaAddressMockMode } from "@/lib/rpa/address-mode";
import { MockAddressAdapter } from "@/workers/rpa/address-adapter/mock-address-adapter";
import { MotherShipAddressAdapter } from "@/workers/rpa/address-adapter/mothership-address-adapter";
import type { AddressAdapter } from "@/workers/rpa/address-adapter/types";

export function createAddressAdapter(): AddressAdapter {
  if (isRpaAddressMockMode()) {
    return new MockAddressAdapter();
  }
  return new MotherShipAddressAdapter();
}
