// import * as React from "react";
// import { useMemo, useCallback, useState } from "react";
// import Header from "../../components/header";
// import Typography from "../../components/ui/typography";
// import NavBar from "../../components/nav-bar";
// import LoginCard from "./login-card";
// import ChannelSelect from "../../components/channel-select";
// import LaunchScreen from "../../components/launch-screen";
// import { useNavigation } from "@react-navigation/native";
// import { LoginModal } from "../../components/login-modal";
// import { SafeAreaView } from "react-native-safe-area-context";
// import useAuth from "../../hooks/use-auth";
// import * as img from "../../assets/images/welcome-screen.png";

// function Auth() {
//   const { isAuth } = useAuth();
//   const navigation = useNavigation();
//   const [openLoginModal, setOpenLoginModal] = useState(false);
//   const [openChannelSelect, setOpenChannelSelect] = useState(false);
//   const [openNavbar, setOpennavbar] = useState(false);
//   const onClickItem = useCallback((item: any) => {
//     navigation.navigate("nav-web-view", { url: item.link, title: item.text });
//   }, []);
//   const openChannel = useCallback(() => setOpenChannelSelect(true), []);
//   const onOpenNavbar = useCallback(() => setOpennavbar(true), []);
//   const onCloseChannelSelect = useCallback(
//     () => setOpenChannelSelect(false),
//     []
//   );
//   const onCloseNavbar = useCallback(() => setOpennavbar(false), []);
//   const onOpenModal = useCallback(() => setOpenLoginModal(true), []);
//   const onCloseLoginModal = useCallback(() => setOpenLoginModal(false), []);
//   const onOpenOauth = useCallback((provider: string) => {
//     navigation.navigate("oauth-webview", { provider });
//   }, []);

//   const actionButon = useMemo(
//     () => (
//       <Typography onPress={onOpenModal} variant="body1">
//         LOGIN
//       </Typography>
//     ),
//     []
//   );

//   if (isAuth) return <LaunchScreen show source={img} />;

//   return (
//     <SafeAreaView>
//       <Header
//         onOpenNavbar={onOpenNavbar}
//         actionButton={actionButon}
//         onOpenChannelsMenu={openChannel}
//       />
//       <LoginCard onSetVisible={setOpenLoginModal} />
//       <LoginModal
//         onOpenOauth={onOpenOauth}
//         onClose={onCloseLoginModal}
//         open={openLoginModal}
//       />
//       <ChannelSelect open={openChannelSelect} onClose={onCloseChannelSelect} />
//       <NavBar
//         open={openNavbar}
//         onClose={onCloseNavbar}
//         onOpenLink={onClickItem}
//       />
//     </SafeAreaView>
//   );
// }

// export default Auth;
export default () => null;
