選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

index.js 597B

123456789101112131415161718192021222324252627
  1. import { useSession } from 'next-auth/react';
  2. import ProfileContent from '../../components/profile-content/ProfileContent';
  3. const ProfilePage = () => {
  4. const { data: session } = useSession();
  5. return <ProfileContent></ProfileContent>;
  6. };
  7. // export async function getServerSideProps(context) {
  8. // const session = await getSession({ req: context.req });
  9. // if (!session) {
  10. // return {
  11. // redirect: {
  12. // destination: LOGIN_PAGE,
  13. // permanent: false,
  14. // },
  15. // };
  16. // }
  17. // return {
  18. // props: { session },
  19. // };
  20. // }
  21. export default ProfilePage;