import { useState, useCallback } from 'react';
import { sdkSetup } from 'react-native-cloud-ca';
const useSdkSetup = () => {
  const [result, setResult] = useState(null);
  const [error, setError] = useState(null);
  const [isLoading, setIsLoading] = useState(false);
  const sdkSetupFunc = useCallback(async params => {
    try {
      setIsLoading(true);
      const response = await sdkSetup(params);
      setResult(response);
    } catch (e) {
      setError(e);
    } finally {
      setIsLoading(false);
    }
  }, []);
  return [result, error, sdkSetupFunc, isLoading];
};
export default useSdkSetup;
//# sourceMappingURL=useSdkSetup.js.map