export const getQueryStringValue = (key: any) => {
	const value = decodeURIComponent(
		window.location.search.replace(
			new RegExp(
				'^(?:.*[&\\?]' +
						encodeURIComponent(key).replace(/[.+*]/g, '\\$&') +
						'(?:\\=([^&]*))?)?.*$',
				'i'
			),
			'$1'
		)
	);
	return value ? value : null;
};