mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 17:19:11 +08:00
ffbb19e090
* chore: enable tsc for demos * chore: site lint * chore: fix lint
12 lines
330 B
TypeScript
12 lines
330 B
TypeScript
import { createContext } from 'react';
|
|
import type { 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;
|