ant-design/site/theme/template/Layout/SiteContext.tsx
lijianan 4fc00ececb
fix: strong type (#36868)
* refactor: rewrite header by FunctionComponent

* refactor: rewrite footer by FunctionComponent

* fix: strong type
2022-08-03 15:42:25 +08:00

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;