import 'react-native-url-polyfill/auto';

import { getRuntimeEnvironment } from '../../shared/runtime.js';
import { createTradingKillSwitchClient, createTradingMobileSdk } from '../../shared/platform-mobile.js';

export const mobileRuntime = getRuntimeEnvironment('mobile');
export const mobileKillSwitchClient = createTradingKillSwitchClient('mobile');

export function createMobilePlatformSdk(getAccessToken: () => string | null = () => null) {
  return createTradingMobileSdk(getAccessToken);
}
