1// in the frontend, webapp_client is set. This is a way for the frontend to get that but nextjs doesn't, 2// but in the same code. 3 4import { createContext, useContext } from "react"; 5 6export interface ClientState { 7 client?; 8} 9 10export const ClientContext = createContext<ClientState>({}); 11 12export default function useClientContext() { 13 return useContext(ClientContext); 14} 15 16