refactor model menu items into component

This commit is contained in:
Daniel Avila 2023-03-03 21:33:09 -05:00
parent 0bec306e59
commit 62bb6ea8f8
6 changed files with 123 additions and 20 deletions

View file

@ -54,9 +54,12 @@ export default function Message({
let icon = `${sender}:`;
let backgroundColor = bgColors[sender];
if (notUser && backgroundColor) {
if (notUser) {
props.className =
'w-full border-b border-black/10 dark:border-gray-900/50 text-gray-800 dark:text-gray-100 group bg-gray-100 dark:bg-[#444654]';
'w-full border-b border-black/10 dark:border-gray-900/50 text-gray-800 dark:text-gray-100 group bg-gray-100 dark:bg-[#444654]';
}
if (notUser && backgroundColor || sender === 'bingai') {
icon = (
<div
style={{ backgroundColor }}