Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/src/packages/frontend/components/mistral-avatar.tsx
Views: 687
import { CSS } from "@cocalc/frontend/app-framework";12// The base64 encoded png is exactly the Mistral AI from their website, with transparent background.3// Why? Importing it from a file and including it causes a nextjs error.45export default function MistralAvatar({6size = 64,7style,8backgroundColor = "transparent",9}: {10size: number;11style?: CSS;12backgroundColor?: string;13}) {14return (15<div16style={{17width: size,18height: size,19display: "inline-block",20position: "relative",21...style,22}}23>24<div25style={{26position: "absolute",27backgroundColor,28color: "white",29height: size,30top: "1px",31}}32>33<img34alt="Mistral AI Icon"35width={size}36height={size}37src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAEB0lEQVR4nOzdP4tc9RfH8XN35/djkzRK4h9WjZVgJRKwsLDTJlZCJDZ5DJYiCqa0tPQhBCJ2Smp7OzutlrCFRlxQN0uY3WsRS/kQznf0zsLrBVue/c7MvW/mVmdW8zwX8M92ln4BsM0EAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCASCVXdwmqb2Qq35++7koOc+e7peuH200OnnxjRNN6rqbmf2zud1ePOd2t/8q3oC1+Zp0//SNwgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBIJpnns7qIeWV3/dnRz0Z92ruc7+83Nvze92R6dp+qYz99TFOv3ty9rtzB78Ws//cL+udWZfe6UevPhsXenMDntv88ur29vdh/yxyKlVc71d00Lvue96c27dvb5XLz/+a5nr0WLX91/gEQsCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEA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