// import { Alert, Button, Input, Progress, Space } from "antd"; // import Form from "antd/lib/form"; // // import '../App.css'; // import { useEffect, useState } from "react"; // import { Link, useHistory } from "react-router-dom"; // import { EmbeddableControl } from "../types"; // import { useActions, useAppState } from "../overmind"; // import { AUTH_FLOW_STATUS } from "../overmind/auth/state"; // import { useForm } from "antd/lib/form/Form"; // import { ContentLayout } from "../Components/ContentLayout"; // import { ProgressButton } from "../Components/ProgressButton"; // import { CrossCircleErr } from "./User/UserCreate"; // import { // IndeterminateProgress, // IndeterminateProgressAction, // } from "../Components/IndeterminateProgress"; // const layout = { // labelCol: { span: 0 }, // wrapperCol: { span: 24 }, // }; // export const Auth = ({ // embedded, // setNext, // setIsErrorSubmit, // }: React.PropsWithChildren) => { // const state = useAppState(); // const actions = useActions(); // const [phoneForm] = Form.useForm(); // const [codeForm] = Form.useForm(); // const [authFormErr, setAuthFormErr] = useState(false); // useEffect(() => { // actions.routing.setBreadcrumbs([{ text: "Auth" }]); // }, []); // useEffect(() => { // if (state.api.auth.authorized && state.routing.location === "/auth") // actions.routing.historyPush({ location: "/explore" }); // }, [state.api.auth.authorized, state.routing.location]); // const _setNext = () => { // embedded && // setNext && // setNext( // state.auth.status === AUTH_FLOW_STATUS.ANONYMOUS // ? { // text: "Send verification", // command: () => phoneForm.submit(), // } // : state.auth.status === AUTH_FLOW_STATUS.RECEIVED // ? { text: "Verify", command: () => codeForm.submit() } // : undefined // ); // return () => setNext && setNext(undefined); // }; // useEffect(_setNext, [state.auth.status]); // useEffect(_setNext, []); // // if (state.auth.authenticated && state.api.auth.user.id) // // if (state.auth.authenticated) // // return ( // //

// // You are logged in. Go explore! // //

// // ); // return ( //
//
// // // { //
// //
// } //
// ); // }; export {};