Example of login function usage as follows:
render() {
const {
areadata,
buildingtypesdata,
dataCount,
quickFacts,
isLoading,
page,
datefrom,
dateto,
rentListingCount,
isRentListingCount,
} = this.state;
const LoginDetails = this.context.isLoggedin;
const { isLoggedin } = this.context;
return (
<LocationScanDetailResultsComponent isLoggedin={isLoggedin} />
);
}