import { useState } from 'react'; import { cn } from '../../lib/classname'; type QuickHelpPromptsProps = { onQuestionClick: (question: string) => void; }; export function QuickHelpPrompts(props: QuickHelpPromptsProps) { const { onQuestionClick } = props; const [selectedActionIndex, setSelectedActionIndex] = useState(0); const quickActions = [ { label: 'Help select a career path', questions: [ 'What roadmap should I pick?', 'What are the best jobs for me?', 'Recommend me a project based on my expertise', 'Recommend me a topic I can learn in an hour', ], }, { label: 'Help me find a job', questions: [ 'How can I improve my resume?', 'How to make a tech resume?', 'What’s asked in coding interviews?', 'Where to find remote dev jobs?', ], }, { label: 'Learn a Topic', questions: [ 'What is the best way to learn React?', 'What is an API?', 'How do databases work?', 'What is async in JS?', ], }, { label: 'Test my Knowledge', questions: [ 'Quiz me on arrays.', 'Test my SQL skills.', 'Ask about REST basics.', 'Test my JS async knowledge.', ], }, ]; const selectedAction = quickActions[selectedActionIndex]; return (

How can I help you?

{quickActions.map((action, index) => ( ))}
{selectedAction.questions.map((question) => ( ))}
); }