Elffuss BraidHub

kikocis/continue public

main · 830 BRawPermalink
1import { useAuth } from "../../context/Auth";
2import { AssistantOption } from "./AssistantOption";
3
4interface AssistantOptionsProps {
5 selectedProfileId: string | undefined;
6 onClose: () => void;
7}
8
9export function AssistantOptions({
10 selectedProfileId,
11 onClose,
12}: AssistantOptionsProps) {
13 const { profiles } = useAuth();
14
15 return (
16 <div className="thin-scrollbar flex max-h-32 flex-col overflow-y-auto">
17 {profiles?.length === 0 ? (
18 <div className="text-vsc-foreground px-3 py-2 opacity-70">
19 No agents found
20 </div>
21 ) : (
22 profiles?.map((profile, idx) => (
23 <AssistantOption
24 key={idx}
25 profile={profile}
26 onClick={onClose}
27 selected={profile.id === selectedProfileId}
28 />
29 ))
30 )}
31 </div>
32 );
33}