Make cursor in chat input take on selected agent color

This commit is contained in:
Debanjum
2024-10-28 16:26:23 -07:00
parent 1448b8b3fc
commit 2ac840e3f2
3 changed files with 19 additions and 3 deletions

View File

@@ -42,6 +42,13 @@ export function converColorToBgGradient(color: string) {
return `${convertToBGGradientClass(color)} dark:border dark:border-neutral-700`;
}
export function convertColorToCaretClass(color: string | undefined) {
if (color && tailwindColors.includes(color)) {
return `caret-${color}-500`;
}
return `caret-orange-500`;
}
export function convertColorToRingClass(color: string | undefined) {
if (color && tailwindColors.includes(color)) {
return `focus-visible:ring-${color}-500`;