feat: icons for chat identification (#879)

* Added endpoint picture

* plugin icon fix & new minimalist icon

* changed from BingAIMinimalIcon to BingAIMinimalistIcon

* fix(Conversation) reduced the space between the icon and the title

* refactor(getIcon & getMinimalIcon)

* moved IconProps in ~/common

* refactor(getIcon & getMinimalistIcon) from switch/case to map

* fix(getIcon.tsx) renamed to Icon

* renamed all from Minimalist to Minimal
This commit is contained in:
Marco Beretta 2023-09-18 21:21:39 +02:00 committed by GitHub
parent 6358383001
commit 2419af8748
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 356 additions and 126 deletions

View file

@ -178,3 +178,17 @@ export type TUserContext = {
export type TAuthConfig = {
loginRedirect: string;
};
export type IconProps = {
size?: number;
isCreatedByUser?: boolean;
button?: boolean;
model?: string;
message?: boolean;
className?: string;
endpoint?: string | null;
error?: boolean;
chatGptLabel?: string;
modelLabel?: string;
jailbreak?: boolean;
};