AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
import { ExpertAvatar } from "@/components/molecules/ExpertAvatar/ExpertAvatar";
import { cn } from "@/lib/utils";
import Image from "next/image";
import {
AUTOPILOT_AVATAR_URL,
AUTOPILOT_NAME,
AUTOPILOT_TRANSPARENT_AVATAR_URL,
} from "./helpers";
interface Props {
size?: number;
transparent?: boolean;
className?: string;
backgroundColor?: string;
}
export function AutopilotAvatar({
size = 24,
transparent = false,
className,
backgroundColor,
}: Props) {
if (transparent) {
return (
<Image
src={AUTOPILOT_TRANSPARENT_AVATAR_URL}
alt={`${AUTOPILOT_NAME}, your personal Head of AI`}
width={size}
height={size}
sizes={`${size}px`}
className={cn("shrink-0 object-contain", className)}
/>
);
}
return (
<ExpertAvatar
name={AUTOPILOT_NAME}
avatarUrl={AUTOPILOT_AVATAR_URL}
size={size}
backgroundColor={backgroundColor}
className={className}
/>
);
}