import { UserAuthenticationContextProvider } from "@/contexts/UserAuthenticationContext";
import UnloggedUserStackNavigation from "@/navigations/UnloggedUserStackNavigation";
import theme from "@/themes/Theme";
import ProvideQueryClient from "@components/providers_wrappers/ProvideQueryClient";
import { NavigationContainer } from "@react-navigation/native";
import { ThemeProvider } from "@shopify/restyle";
import { StyleSheet } from "react-native";

export default function App() {
	return (
		<ThemeProvider theme={theme}>
			<NavigationContainer>
				<ProvideQueryClient>
					<UserAuthenticationContextProvider>
						{/* <View style={styles.container}> */}
						{/* <SafeAreaProvider>
					<StatusBar style="auto" />
					<UserLoginScreen />
				</SafeAreaProvider> */}
						<UnloggedUserStackNavigation />
						{/* </View> */}
					</UserAuthenticationContextProvider>
				</ProvideQueryClient>
			</NavigationContainer>
		</ThemeProvider>
	);
}

const styles = StyleSheet.create({
	container: {
		flex: 1,
		backgroundColor: "#fff",
		alignItems: "center",
		justifyContent: "center",
	},
});

const NavigatonRenderer = () => {};
