"use client"; import { type FC } from "react"; const SUGGESTIONS = [ { icon: "🔍", title: "Aké právne dáta", description: "môže agent nájsť?", prompt: "Aké právne dáta môžeš vyhľadať?", }, { icon: "🚫", title: "Čo agent nesmie", description: "robiť alebo používať?", prompt: "Čo nie si oprávnený robiť alebo použiť?", }, { icon: "🤖", title: "Detaily AI modelu", description: "aký model používaš?", prompt: "Aké sú detaily tvojho AI modelu?", }, { icon: "📊", title: "Zdroje dát", description: "odkiaľ čerpáš informácie?", prompt: "Aké dátové zdroje agent využíva?", }, ]; const ThreadSuggestions: FC = () => { const handleClick = (prompt: string) => { const input = document.querySelector( 'textarea[aria-label="Message input"]' ) as HTMLTextAreaElement; if (input) { const nativeInputValueSetter = Object.getOwnPropertyDescriptor( window.HTMLTextAreaElement.prototype, "value" )?.set; nativeInputValueSetter?.call(input, prompt); input.dispatchEvent(new Event("input", { bubbles: true })); input.focus(); } }; return (
{SUGGESTIONS.map((s) => ( ))}
); }; export const ThreadWelcome: FC = () => { return (
Legal AI { e.currentTarget.style.display = "none"; e.currentTarget.parentElement!.innerHTML = `
⚖️
`; }} />

Legal AI Assistant

); };