Spaces:
Sleeping
Sleeping
File size: 1,091 Bytes
2fb781f | 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 34 35 36 37 38 39 | 'use client';
import { Lightbulb } from 'lucide-react';
const TEMPLATES = [
'Who manages the person who leads the team that built?',
'What services depend on?',
'How are two entities connected?',
'What projects is involved in?',
'Which organizations partner with?',
'What technology does use?',
];
interface QueryTemplatesProps {
onSelect: (template: string) => void;
}
export function QueryTemplates({ onSelect }: QueryTemplatesProps) {
return (
<div className="space-y-2">
<div className="flex items-center gap-1.5 text-xs font-medium text-text-muted">
<Lightbulb className="h-3 w-3" />
Try a question
</div>
<div className="flex flex-wrap gap-2">
{TEMPLATES.map((t) => (
<button
key={t}
onClick={() => onSelect(t)}
className="rounded-full border border-border bg-bg-elevated px-3 py-1.5 text-xs text-text-secondary transition-colors hover:border-accent-cyan/50 hover:text-accent-cyan"
>
{t}
</button>
))}
</div>
</div>
);
}
|