import { IconLoader2 } from "@tabler/icons-react"; import { Data } from "../types"; import Logo from "./Logo"; import { theme } from "../theme"; export default function Loading({ onLoad }: { onLoad: (data: Data) => void }) { fetch( process.env.NODE_ENV === "production" ? "/api/v1/full" : `http://${window.location.hostname}:8000/api/v1/full`, ).then((response) => response.json().then((data) => {onLoad(data as Data)})); return (