import type React from "react"; import { DEFAULT_EXAMPLES, type Example } from "../constants/examples"; interface ExamplePromptsProps { examples?: Example[]; onExampleClick: (messageText: string) => void; } const ExamplePrompts: React.FC = ({ examples, onExampleClick, }) => { // If examples are provided, use them. Otherwise, generate from enabled tools. let dynamicExamples = examples; if (!dynamicExamples) { // Try to get tools from props (if passed as examples) dynamicExamples = undefined; } // If still undefined, fallback to DEFAULT_EXAMPLES if (!dynamicExamples) { dynamicExamples = DEFAULT_EXAMPLES; } return (

Try an example

Click one to get started

{dynamicExamples.map((example, index) => ( ))}
); }; export default ExamplePrompts;