frontend/.pnpm-store/v3/files/80/c6b8c2486cff2018264a1a5e8286eed85ff488183d9a23b9f889987f0b9b8b017dedf005b5b7315be1e5b378c576525525ad7efc6a3019230780c117d50e38

12 lines
343 B
Plaintext

import { Context } from 'preact';
import { Config } from '../config';
/**
* This is a hack to get the current global config from Preact context.
* My assumption is that we only need one global context which is the ConfigContext
*
* @param context
*/
export default function getConfig(context: {
[key: string]: Context<any>;
}): Config;