2021-07-10 21:44:37 +00:00
|
|
|
import React, { useEffect } from "react";
|
2021-07-08 23:01:17 +00:00
|
|
|
import "../../App.css";
|
|
|
|
import Footer from "../../Footer";
|
2021-07-10 21:44:37 +00:00
|
|
|
import { Logger } from "@behametrics/logger-web";
|
|
|
|
import { useAuth } from "../../auth/AuthProvider";
|
2021-07-08 23:01:17 +00:00
|
|
|
|
|
|
|
export default function Behavior() {
|
2021-07-10 21:44:37 +00:00
|
|
|
let logger = new Logger({
|
|
|
|
//inputs: ["cursor", "wheel", "keyboard", "touch"],
|
|
|
|
inputs: ["keyboard"],
|
|
|
|
logToConsole: true,
|
|
|
|
});
|
|
|
|
logger.init();
|
|
|
|
|
|
|
|
let [isLoggedIn] = useAuth();
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
document.title = `${isLoggedIn}`;
|
|
|
|
console.log(isLoggedIn);
|
|
|
|
if (isLoggedIn === false) {
|
|
|
|
logger.stop();
|
|
|
|
console.log("stopped logger");
|
|
|
|
} else {
|
|
|
|
logger.start();
|
|
|
|
console.log("start logger");
|
|
|
|
}
|
|
|
|
});
|
2021-07-08 23:01:17 +00:00
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<div className="sitePage">
|
|
|
|
<h1>Studie Verhaltensmerkmale</h1>
|
|
|
|
</div>
|
|
|
|
<Footer />
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|