import type { FC } from 'react'; import React, { useContext } from 'react'; import { ConfigContext } from 'antd/es/config-provider'; import type { ThemeProviderProps } from 'antd-style'; import { ThemeProvider } from 'antd-style'; import { theme } from 'antd'; const SiteThemeProvider: FC = ({ children, ...rest }) => { const { getPrefixCls, iconPrefixCls } = useContext(ConfigContext); const rootPrefixCls = getPrefixCls(); const { token } = theme.useToken(); return ( {children} ); }; export default SiteThemeProvider;