import { jsx as _jsx } from "@emotion/react/jsx-runtime";
import { useContext } from 'react';
import { ConfigProvider as ConfigProviderAntd } from 'antd';
import { customTheme as customThemeLight } from '../../themes/light';
import { customTheme as customThemeDark } from '../../themes/dark';
import { ThemeContext } from './contexts';
const CONFIG_MAP = {
    light: customThemeLight,
    dark: customThemeDark,
};
export const ConfigProvider = ({ children }) => {
    const mode = useContext(ThemeContext);
    return (_jsx(ConfigProviderAntd, { theme: CONFIG_MAP[mode], children: children }));
};
