import React, { useState } from 'react';
import '../style.css';
import {
Navigate
} from "react-router-dom";
import { useSelector } from 'react-redux';
import RetroHitCounter from 'react-retro-hit-counter';
import ContractPrices from '../components/ContractPrices';
// Index of all sub-pages on this website
const Home = (obj) => {
const userstate = useSelector((state) => state.userstate);
const livepeer = useSelector((state) => state.livepeerstate);
const [redirectToGrafana, setRedirectToGrafana] = useState(false);
const [redirectToLPT, setRedirectToLPT] = useState(false);
const [redirectToStats, setRedirectToStats] = useState(false);
const [redirectToGraphs, setRedirectToGraphs] = useState(false);
const [thisChad, setChad] = useState("");
if (redirectToGrafana) {
return ;
}
if (redirectToLPT) {
return ;
}
if (redirectToStats) {
return ;
}
if (redirectToGraphs) {
return ;
}
// Get amount of unique IP's which have visited this website
var totalVisitorCount = 0;
if (userstate.visitorStats) {
totalVisitorCount = userstate.visitorStats.totalVisitorCount;
}
if (thisChad == ""){
const randomChad = performance.now();
const chadSource = "https://stronk.rocks/avatar.png?" + randomChad;
setChad(chadSource);
}
return (
Home
{/*
*/}
{/*
Status
There was an issue with Events getting duplicated. The website might become unavailable from time to time while the issue is being fixed.
*/}
)
}
export default Home;