mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 09:39:10 +08:00
4fc00ececb
* refactor: rewrite header by FunctionComponent * refactor: rewrite footer by FunctionComponent * fix: strong type
15 lines
315 B
TypeScript
15 lines
315 B
TypeScript
import * as React from 'react';
|
|
import type { DirectionType } from 'antd/es/config-provider';
|
|
|
|
export interface SiteContextProps {
|
|
isMobile: boolean;
|
|
direction: DirectionType;
|
|
}
|
|
|
|
const SiteContext = React.createContext<SiteContextProps>({
|
|
isMobile: false,
|
|
direction: 'ltr',
|
|
});
|
|
|
|
export default SiteContext;
|