import { GetServerSidePropsContext, GetServerSidePropsResult } from 'next'; import { ParsedUrlQuery } from 'querystring'; import { User } from './user'; export enum Phases { One = 'Formación', Two = 'Trivial', Three = 'Reto', Four = 'Cierre', Clinic = 'Práctica Clínica', Event = 'Evento', } export interface CustomResponse { ok: boolean; error?: string; data?: T; } export type IncomingSSR< // eslint-disable-next-line @typescript-eslint/no-explicit-any P extends { [key: string]: any } = { [key: string]: any }, Q extends ParsedUrlQuery = ParsedUrlQuery, > = ( ctx: GetServerSidePropsContext, user: User, ) => Promise>;