mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 01:29:11 +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;
|