import EmojiPicker, { Emoji, EmojiStyle, Theme as EmojiTheme, } from "emoji-picker-react"; import { ModelType } from "../store"; import BotIcon from "../icons/bot.svg"; import BlackBotIcon from "../icons/black-bot.svg"; export function getEmojiUrl(unified: string, style: EmojiStyle) { return `https://cdn.staticfile.org/emoji-datasource-apple/14.0.0/img/${style}/64/${unified}.png`; } export function AvatarPicker(props: { onEmojiClick: (emojiId: string) => void; }) { return ( { props.onEmojiClick(e.unified); }} /> ); } export function Avatar(props: { model?: ModelType; avatar?: string }) { if (props.model) { return (
{props.model?.startsWith("gpt-4") ? ( ) : ( )}
); } return (
{props.avatar && }
); } export function EmojiAvatar(props: { avatar: string; size?: number }) { return ( ); }