// обработка полей UserProfiles
const handlerUserProfileAction = (
	exchange: string,
	name: string,
	value: string | boolean
) => {
	return {
		type: "HANDLER_USER_PROFILE_ACTION",
		exchange,
		name,
		value,
	}
}

// обработка полей filterDetails
const handlerFilterDetailsAction = (
	exchange: string,
	name: string,
	value: string | boolean
) => {
	return {
		type: "HANDLER_VALUE_FILTER_ACTION",
		exchange,
		name,
		value,
	}
}

// обработка полей advDetails
const handlerAdvDetailsAction = (name: string, value: string) => {
	return {
		type: "HANDLER_ADV_DETAILS_ACTION",
		name,
		value,
	}
}

// обработка заголовков PopupWindows and alerts in demoMode
const handlerPopupWindowAction = (category: string, message: string) => {
	return {
		type: "HANDLER_POPUP_WINDOW_ACTION",
		category,
		message,
	}
}

export {
	handlerFilterDetailsAction,
	handlerUserProfileAction,
	handlerAdvDetailsAction,
	handlerPopupWindowAction,
}
