import React, { useEffect } from "react"; // import lockIcon from "../assets/lock.png"; import closeIcon from "../assets/closeIcon.svg"; import GET_SESSION from "../../../graphql/query/GET_SESSION.graphql"; import { useLazyQuery } from "react-apollo"; import { Spinner } from "vtex.styleguide"; import { Link } from "vtex.render-runtime"; // import userIcon from "../assets/userIcon.svg"; import styles from "./MenuHeaderMobile.css"; const MenuHeaderMobile = ({ close }: { close: () => void }) => { const [getSession, { data, loading }] = useLazyQuery( GET_SESSION, { fetchPolicy: "network-only", } // { variables: { language: "english" } } ); useEffect(() => { getSession(); }, []); if (!data || loading) { return (