File size: 1,233 Bytes
5e870e6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { Lightbulb } from 'lucide-react';

const examples = [
  { text: "Add buy milk to my list", highlight: "Add buy milk to my list" },
  { text: "Show me my tasks", highlight: "Show me my tasks" },
  { text: "Mark task 1 as complete", highlight: "Mark task 1 as complete" },
  { text: "Delete task 2", highlight: "Delete task 2" },
];

export default function QuickExamples() {
  return (
    <div className="glass rounded-2xl p-6">
      <h3 className="text-base font-semibold text-foreground mb-4 flex items-center gap-2">
        <span className="w-2 h-2 bg-primary rounded-full animate-pulse" />
        <Lightbulb className="w-4 h-4 text-primary" />
        Quick Examples
      </h3>
      <div className="space-y-2">
        {examples.map((example, index) => (
          <div
            key={index}
            className="p-3 bg-secondary/50 rounded-lg border border-border/30 hover:border-primary/30 transition-colors duration-200 cursor-pointer group"
          >
            <p className="text-sm text-muted-foreground group-hover:text-foreground transition-colors">
              "<span className="text-primary">{example.highlight}</span>"
            </p>
          </div>
        ))}
      </div>
    </div>
  );
}