import {
	UPDATE_RESIDENTS,
	LOADED_RESIDENTS,
	LOADED_LINKED_USERS,
	LOADED_LINKED_TO_USERS,
} from "./types";

export const updateResidents = (userContact) => {
	return {
		type: UPDATE_RESIDENTS,
		payload: userContact,
	};
};

export const residentsLoaded = (list) => {
	return {
		type: LOADED_RESIDENTS,
		payload: list,
	};
};

export const linkedUsersLoaded = (linkedUsers) => {
	return {
		type: LOADED_LINKED_USERS,
		payload: linkedUsers,
	};
};

export const linkedToUsersLoaded = (linkedToUsers) => {
	return {
		type: LOADED_LINKED_TO_USERS,
		payload: linkedToUsers,
	};
};
