-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathindex.tsx
More file actions
35 lines (32 loc) · 1.04 KB
/
index.tsx
File metadata and controls
35 lines (32 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
* (c) 2021, Micro:bit Educational Foundation and contributors
*
* SPDX-License-Identifier: MIT
*/
import { ReactNode, createContext } from "react";
import { CookieConsent, DeploymentConfigFactory } from "..";
import { ConsoleLogging } from "./logging";
import theme from "./theme";
const stubConsentValue: CookieConsent = {
analytics: false,
functional: true,
};
const stubConsentContext = createContext<CookieConsent | undefined>(
stubConsentValue
);
const defaultDeploymentFactory: DeploymentConfigFactory = () => ({
chakraTheme: theme,
// This isn't ideal as it's the branded version. You can just remove the field to remove the welcome dialog.
welcomeVideoYouTubeId: "mREwMW69qKc",
logging: new ConsoleLogging(),
compliance: {
ConsentProvider: ({ children }: { children: ReactNode }) => (
<stubConsentContext.Provider value={stubConsentValue}>
{children}
</stubConsentContext.Provider>
),
consentContext: stubConsentContext,
manageCookies: undefined,
},
});
export default defaultDeploymentFactory;