mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 00:29:12 +08:00
12 lines
325 B
TypeScript
12 lines
325 B
TypeScript
|
import { createContext } from 'react';
|
||
|
import { ThemeConfig } from 'antd/es/config-provider/context';
|
||
|
|
||
|
export type ThemeContextProps = {
|
||
|
theme: ThemeConfig;
|
||
|
setTheme: (theme: ThemeConfig) => void;
|
||
|
};
|
||
|
|
||
|
const ThemeContext = createContext<ThemeContextProps>({ theme: {}, setTheme: () => {} });
|
||
|
|
||
|
export default ThemeContext;
|