'use client' import { Auth } from "@/model/Auth"; import { User } from "@/model/User"; import { ReactNode, createContext } from "react"; import { Attributes, InferAttributes } from "@sequelize/core"; export type AuthProps = { auth?: Attributes user?: Attributes } let p: AuthProps = {} export type AdminViewProps = { view: string; } let avp: AdminViewProps = { view: "home", } export const AdminViewContext = createContext(avp); export const AuthContext = createContext(p); interface Props { children?: ReactNode; params?: any; } export default function Providers(props:Props){ return ( {props.children} ) }