feat: Add tag colors for custom and copilot prompts in PromptBody component

This commit is contained in:
n4ze3m
2024-08-04 11:23:29 +05:30
parent 80413a3c26
commit 1bb6d3a89a
3 changed files with 77 additions and 10 deletions

View File

@@ -14,6 +14,7 @@ import { EditMessageForm } from "./EditMessageForm"
import { useTranslation } from "react-i18next"
import { MessageSource } from "./MessageSource"
import { useTTS } from "@/hooks/useTTS"
import { tagColors } from "@/utils/color"
type Props = {
message: string
@@ -37,14 +38,6 @@ type Props = {
isTTSEnabled?: boolean
}
const tagColors = {
summary: "blue",
explain: "green",
translate: "purple",
custom: "orange",
rephrase: "yellow"
}
export const PlaygroundMessage = (props: Props) => {
const [isBtnPressed, setIsBtnPressed] = React.useState(false)
const [editMode, setEditMode] = React.useState(false)