mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-14 16:19:15 +08:00
15 lines
320 B
TypeScript
15 lines
320 B
TypeScript
|
import { createContext } from 'react';
|
||
|
|
||
|
export type DemoContextProps = {
|
||
|
showDebug?: boolean;
|
||
|
};
|
||
|
|
||
|
const DemoContext = createContext<{
|
||
|
showDebug?: boolean;
|
||
|
setShowDebug?: (showDebug: boolean) => void;
|
||
|
debugDemos?: string[];
|
||
|
setDebugDemos?: (visibleItems: string[]) => void;
|
||
|
}>({});
|
||
|
|
||
|
export default DemoContext;
|