import type { InferGetServerSidePropsType, NextPage } from "next"; import { withPageOnboardingRequired } from "../../lib/session-helpers"; import Layout from "../components/layout"; import useUser from "../hooks/use-user"; type Props = InferGetServerSidePropsType; const pageTitle = "Calls"; const Calls: NextPage = (props) => { const { userProfile } = useUser(); console.log("userProfile", userProfile); if (!userProfile) { return Loading...; } return (

Calls page

); }; export const getServerSideProps = withPageOnboardingRequired( async (context, user) => { return { props: { userId: user.id, ddd: 23 as const }, }; }, ); export default Calls;