|
|
@@ -102,24 +102,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div class="flex items-center gap-1 self-start rounded-lg border border-gray-200 bg-gray-50 p-0.5 text-xs dark:border-gray-700 dark:bg-gray-800/50">
|
|
|
- <button
|
|
|
- type="button"
|
|
|
- class="rounded-md px-2.5 py-1 font-medium transition-colors"
|
|
|
- :class="mode === 'documentos' ? 'bg-white text-foreground shadow-sm dark:bg-gray-700' : 'text-gray-500 dark:text-gray-400'"
|
|
|
- @click="$emit('update:mode', 'documentos')"
|
|
|
- >
|
|
|
- Documentos
|
|
|
- </button>
|
|
|
- <button
|
|
|
- type="button"
|
|
|
- class="rounded-md px-2.5 py-1 font-medium transition-colors"
|
|
|
- :class="mode === 'atendimentos' ? 'bg-white text-foreground shadow-sm dark:bg-gray-700' : 'text-gray-500 dark:text-gray-400'"
|
|
|
- @click="$emit('update:mode', 'atendimentos')"
|
|
|
- >
|
|
|
- Atendimentos
|
|
|
- </button>
|
|
|
- </div>
|
|
|
+ <ChatModeToggle class="self-start" :mode="mode" @update:mode="$emit('update:mode', $event)" />
|
|
|
|
|
|
<div class="grid gap-3 md:grid-cols-[1fr_auto] md:items-end">
|
|
|
<textarea
|
|
|
@@ -164,6 +147,7 @@ import { marked, Renderer } from "marked";
|
|
|
import DOMPurify from "dompurify";
|
|
|
import hljs from "highlight.js";
|
|
|
import BaseButton from "./base/BaseButton.vue";
|
|
|
+import ChatModeToggle from "./ChatModeToggle.vue";
|
|
|
|
|
|
const props = defineProps({
|
|
|
messages: { type: Array, required: true },
|