mirror of
https://github.com/qwertyforce/scenery.git
synced 2025-05-31 11:42:35 +00:00
23 lines
707 B
TypeScript
23 lines
707 B
TypeScript
// import React from 'react';
|
|
// import db_ops from '../server/helpers/db_ops'
|
|
|
|
// export default function Index(props: { user_data: string; }) {
|
|
// return (
|
|
// <div>{props.user_data}</div>
|
|
// );
|
|
// }
|
|
|
|
// // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
// export async function getServerSideProps(context: any) {
|
|
// let authed = false;
|
|
// let user_data;
|
|
// if (context.req.session?.authed && context.req.session?.user_id) {
|
|
// authed = true;
|
|
// const user = await db_ops.activated_user.find_user_by_id(context.req.session.user_id)
|
|
// console.log(user[0])
|
|
// user_data = JSON.stringify(user[0])
|
|
// }
|
|
// return {
|
|
// props: { authed, user_data }
|
|
// }
|
|
// }
|