Elffuss BraidHub

kikocis/continue public

a5fcde5311cf · 1.1 KiBRawPermalink
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 <>
17 <div className="flex gap-1.5 px-3 pb-1 pt-2">
18 <label className="text-vsc-foreground font-semibold">Agents</label>
19 <div className="flex cursor-pointer flex-row items-center gap-1 hover:brightness-125"></div>
20 </div>
21
22 <div className="thin-scrollbar flex max-h-[300px] flex-col overflow-y-auto">
23 {profiles?.length === 0 ? (
24 <div className="text-vsc-foreground px-3 py-2 opacity-70">
25 No agents found
26 </div>
27 ) : (
28 profiles?.map((profile, idx) => (
29 <AssistantOption
30 key={idx}
31 profile={profile}
32 onClick={onClose}
33 selected={profile.id === selectedProfileId}
34 />
35 ))
36 )}
37 </div>
38 </>
39 );
40}