import React, { Context } from 'react'; export interface IAppContext { showDownloadControls: boolean; } export const AppContext: Context = React.createContext< IAppContext >({ showDownloadControls: true, });