// In file: src/app/page.tsx some basic changes in order to test gitea
"use client";
import { useState, useEffect } from "react";
import dynamic from "next/dynamic";
import { getCommands, getLatestGPS, DeviceCommand, TelemetryPost, DeviceCommandType, postReceipt } from "~/lib/api"; // Assuming postCommand will be added later
import { CommandManager } from "~/app/_components/CommandManager";
// Dynamically import the map component with SSR turned OFF to prevent "window is not defined" errors
const DeviceMap = dynamic(
() => import("~/app/_components/DynamicDeviceMap").then((mod) => mod.DeviceMap),
{
ssr: false,
loading: () =>