// // @ts-nocheck
// import * as React from 'react';
// import {NavigationInjectedProps} from 'react-navigation';
// import {WebView, WebViewNavigation, WebViewProps} from 'react-native-webview';
// import {View} from 'react-native';
// import {AUTH_PROVIDERS, authService} from '../../services/auth';
// import {useSiteSettings} from '../../providers/site';
// import Url, {qs} from 'url-parse';
// import {useNavigation, useRoute} from '@react-navigation/native';
// import {useAuthProvider} from '../../providers/auth-provider';

// export interface AuthScreenProps
//   extends NavigationInjectedProps<{provider: keyof typeof AUTH_PROVIDERS}> {}

// export const AuthScreen = (props: AuthScreenProps) => {
//   const webView = React.useRef<WebViewProps | null>(null);
//   const {id} = useSiteSettings();
//   const route = useRoute();
//   const navigation = useNavigation();
//   const {login} = useAuthProvider();
//   const uri =
//     'https://signon.bowl.com/connect/authorize?client_id=BOWLTV_CLIENT_B23D9481-6093-4109-A45D-801F314B3BFF&redirect_uri=https%3A%2F%2Fapi.maestro.io%2Fauth%2Fv1%2Foauth%2Fbowltv&response_type=code&scope=openid%20profile&state=https%3A%2F%2Fwww.bowltv.com%2F';

//   // const uri = React.useMemo(
//   //   () => authService.generateAuthUrl(id, route.params.provider),
//   //   [route.params.provider]
//   // );

//   const onNavStateChange = (data: WebViewNavigation) => {
//     const url = new Url(data.url);

//     const queryString = qs.parse(url.query) as any;

//     if (queryString.bowltv_access_token) {
//       if (route.params?.provider === 'debug') {
//         authService.debugAuthState().then(() => {
//           navigation.navigate('home');
//         });
//       } else {
//         authService
//           .exchangeBowlTvToken(queryString.bowltv_access_token)
//           .then((data) => {
//             login(data);
//           });
//       }
//     }
//   };

//   return (
//     <View style={{flex: 1}}>
//       <WebView
//         ref={webView}
//         source={{uri}}
//         onNavigationStateChange={(data) => onNavStateChange(data)}
//       />
//     </View>
//   );
// };

export const AuthScreen = () => {
  return null;
};
