File size: 767 Bytes
b82c338
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
export default function ExamplePrompts({ examples, onSelect }) {
  return (
    <details className="bg-white rounded-xl shadow-md">
      <summary className="px-6 py-4 cursor-pointer font-semibold text-slate-700 hover:bg-slate-50 rounded-xl transition-colors">
        💡 Example Prompts
      </summary>
      <div className="px-6 pb-6 space-y-2">
        {examples.map((example, index) => (
          <button
            key={index}
            onClick={() => onSelect(example)}
            className="w-full text-left px-4 py-3 bg-slate-50 hover:bg-primary-50 border border-slate-200 hover:border-primary-300 rounded-lg transition-colors text-sm text-slate-700"
          >
            {example}
          </button>
        ))}
      </div>
    </details>
  );
}