import * as React from "react";
import { Navigate } from "react-router-dom";
import { authTokenStorageHandlerInit } from "../components/storageHandler.ts";

import TilingItem from "../components/TilingItem.tsx";

export default function Home() {
  const authTokenStorageHandler = authTokenStorageHandlerInit();

  if (!authTokenStorageHandler.authTokenValue) {
    return <Navigate to="/home"></Navigate>;
  }

  return (
    <>
      <div className="standardHorizontalTilingGrid">
        <TilingItem titlebarName="testing"></TilingItem>
        <TilingItem>
          <p>Testing</p>
        </TilingItem>
      </div>
    </>
  );
}
