Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

689 B
Raw Blame
import { useOrganizationBranding } from "@/lib/use-organization-branding";
import { t } from "@/lib/i18n";

export function OrganizationIdentity({ compact = false }: { compact?: boolean }) {
  const organization = useOrganizationBranding();
  if (!organization?.logo) return null;
  return <div className={`flex items-center gap-2 py-2 ${compact ? "justify-center px-1" : "px-4"}`} title={organization.name}>
    <img src={organization.logo} alt={t("organization.logoAlt", { name: organization.name })} className="size-8 shrink-0 rounded-lg object-contain" />
    {!compact && <span className="truncate text-[13px] font-semibold text-ink-secondary">{organization.name}</span>}
  </div>;
}