MCPcopy Create free account
hub / github.com/developersdigest/llm-answer-engine / InitialQueries

Function InitialQueries

components/answer/InitialQueries.tsx:9–34  ·  view source on GitHub ↗
({ questions, handleFollowUpClick }: InitialQueriesProps)

Source from the content-addressed store, hash-verified

7}
8
9const InitialQueries = ({ questions, handleFollowUpClick }: InitialQueriesProps) => {
10 const handleQuestionClick = (question: string) => {
11 handleFollowUpClick(question);
12 };
13
14 return (
15 <div className="">
16 <div className="flex items-center">
17 </div>
18 <ul className="mt-2">
19 {questions.map((question, index) => (
20 <li
21 key={index}
22 className="flex items-center cursor-pointer dark:bg-slate-800 bg-white shadow-lg rounded-lg p-4 my-2"
23 onClick={() => handleQuestionClick(question)}
24 >
25 <span role="img" aria-label="link" className="mr-2 dark:text-white text-black">
26 <IconPlus />
27 </span>
28 <p className="dark:text-white block sm:inline text-md sm:text-lg font-semibold dark:text-white text-black">{question}</p>
29 </li>
30 ))}
31 </ul>
32 </div>
33 );
34};
35
36export default InitialQueries;

Callers

nothing calls this directly

Calls 1

handleQuestionClickFunction · 0.70

Tested by

no test coverage detected