Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

1.0 KB
Raw Blame
import { useState, type CSSProperties } from "react";

import uplinkLoaderSource from "./uplink-loader.html?raw";

export type UplinkLoaderProps = {
  className?: string;
  style?: CSSProperties;
};

export function UplinkLoader({ className = "", style }: UplinkLoaderProps) {
  const [ready, setReady] = useState(false);

  return (
    <div
      className={`uplink-loader${className ? ` ${className}` : ""}`}
      data-state={ready ? "ready" : "loading"}
      style={{
        position: "relative",
        width: "100%",
        height: "100%",
        overflow: "hidden",
        background: "#030806",
        ...style,
      }}
    >
      <iframe
        title="SYS.LINK uplink progress loader"
        srcDoc={uplinkLoaderSource}
        sandbox="allow-scripts"
        loading="eager"
        onLoad={() => setReady(true)}
        style={{
          position: "absolute",
          inset: 0,
          display: "block",
          width: "100%",
          height: "100%",
          border: 0,
          background: "#030806",
        }}
      />
    </div>
  );
}