| 123456789101112131415161718192021222324252627 |
- import { useSession } from 'next-auth/react';
- import ProfileContent from '../../components/profile-content/ProfileContent';
-
- const ProfilePage = () => {
- const { data: session } = useSession();
-
- return <ProfileContent></ProfileContent>;
- };
-
- // export async function getServerSideProps(context) {
- // const session = await getSession({ req: context.req });
-
- // if (!session) {
- // return {
- // redirect: {
- // destination: LOGIN_PAGE,
- // permanent: false,
- // },
- // };
- // }
-
- // return {
- // props: { session },
- // };
- // }
-
- export default ProfilePage;
|