Skip to content

Open-source AI coworkers that each get a computer of their own: a browser, files and tools, with every action decided before it happens and recorded after. Bring any AG-UI agent.

492 B
Raw Blame
import { IconPlug } from "@tabler/icons-react";
import { useState } from "react";

export function PluginLogo({ logo }: { logo?: string | null }) {
  const [failedUrl, setFailedUrl] = useState<string | null>(null);
  if (!logo || failedUrl === logo) return <IconPlug className="size-4" />;

  return (
    <img
      alt=""
      src={logo}
      className="size-6 object-contain"
      referrerPolicy="no-referrer"
      loading="lazy"
      onError={() => setFailedUrl(logo)}
    />
  );
}