Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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;