mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-23 06:58:33 +08:00
72b5263344
* site: sync all code type of demos when change one of them * site: remove localStorage --------- Co-authored-by: afc163 <afc163@gmail.com> Co-authored-by: Peach <scdzwyxst@gmail.com>
16 lines
329 B
TypeScript
16 lines
329 B
TypeScript
import { createContext } from 'react';
|
|
|
|
export type DemoContextProps = {
|
|
showDebug?: boolean;
|
|
codeType?: string;
|
|
};
|
|
|
|
const DemoContext = createContext<{
|
|
showDebug?: boolean;
|
|
setShowDebug?: (showDebug: boolean) => void;
|
|
codeType?: string;
|
|
setCodeType?: (codeType: string) => void;
|
|
}>({});
|
|
|
|
export default DemoContext;
|