import { isMobile } from "react-device-detect";
import AuthDesktop from "./AuthDesktop";
import AuthMobile from "./AuthMobile";

const Auth = () => {
  const isAuth = false;
  const userName = "Name";

  return (
    <>
      {isMobile ? (
        <AuthMobile isAuth={isAuth} userName={userName} />
      ) : (
        <AuthDesktop isAuth={isAuth} userName={userName} />
      )}
    </>
  );
};

export default Auth;
