import { useEffect, useState, useCallback } from "react" import { useNavigate } from "react-router-dom" import SideBar from "../components/Sidebar/Sidebar" import LineGraph from "../components/Graphs/LineGraph" import TimePicker from "../components/TimePicker/TimePicker" import DonutChart from "../components/Graphs/DonutChart" import MostEditedFiles from "../components/MostEditedFiles" export default function Home(props: any) { const navigate = useNavigate() useEffect(() => { if (!props.session) { navigate('/login') } }, [props.session]) return ( <>

Active hosts

  1. Host 1
  2. Host 2

Most edited files

) }