import * as React from 'react'; import type { DirectionType } from 'antd/es/config-provider'; import type { ThemeName } from '../common/ThemeSwitch'; export interface SiteContextProps { isMobile: boolean; direction: DirectionType; theme: ThemeName[]; updateSiteConfig: (props: Partial) => void; } const SiteContext = React.createContext({ isMobile: false, direction: 'ltr', theme: ['light'], updateSiteConfig: () => {}, }); export default SiteContext;