import React from "react";
import LayoutWithNav from "@/components/layout/LayoutWithNav";
import StandardContainer from "@/components/layout/StandardContainer";
import { Col, Row } from "antd";
import { NextSeo } from "next-seo";
import { withAuth } from "auth/withAuth";
import { getToken } from "utilFuncs/utilFunctions";

export const getServerSideProps = async ({ req, res }: any) => {
  const token = getToken();
  
  console.log("token", token);
  
  return {
    props: {
      token,
    },
  };
};

function Messages() {
  return (
    <LayoutWithNav page_title="Messages" description="Messages">
      <NextSeo
        title={`Messages | Ashantiweb.com`}
        description={`View all your chat messages on Ashantiweb`}
      />
      <StandardContainer>
        <h2>Your Messages</h2>
      </StandardContainer>
    </LayoutWithNav>
  );
}

export default withAuth(Messages);
