import { reduxWrapper } from '../store'
import numeral from 'numeral';
import '../css/style.css';

//import DaData from 'dadata';
//global.dadata = new DaData(process.env.DADATA_API_KEY, process.env.DADATA_SECRET_KEY);

const m = Math.random();
numeral.register('locale', `locale_${ m }`, {
	delimiters: {
		thousands: ' ',
		decimal: ','
	},
	abbreviations: {
		thousand: 'k',
		million: 'm',
		billion: 'b',
		trillion: 't'
	},
	currency: {
		symbol: '₽'
	}
});
numeral.locale(`locale_${ m }`);

const WrappedApp = ({ Component, pageProps }) => 
{
	return (
		<Component {...pageProps} />
	)
}

export default reduxWrapper.withRedux(WrappedApp);