({ questions, handleFollowUpClick }: InitialQueriesProps)
| 7 | } |
| 8 | |
| 9 | const 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 | |
| 36 | export default InitialQueries; |
nothing calls this directly
no test coverage detected