We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efaae66 commit bf751b8Copy full SHA for bf751b8
apps/nextjs/src/app/_components/feed-selector.tsx
@@ -11,6 +11,7 @@ import {
11
CommandInput,
12
CommandList,
13
} from "@ai-inbox/ui/command";
14
+import { Spinner } from "@ai-inbox/ui/spinner";
15
16
import { api } from "~/trpc/react";
17
@@ -40,7 +41,16 @@ export function FeedSelector({
40
41
className="relative max-h-full min-h-0"
42
scrollShadow="bottom"
43
>
- <CommandEmpty>Nothing found!</CommandEmpty>
44
+ {sources.isLoading ? (
45
+ <CommandEmpty className="flex justify-center">
46
+ <div className="flex items-center gap-2 py-6">
47
+ <Spinner />
48
+ Loading...
49
+ </div>
50
+ </CommandEmpty>
51
+ ) : (
52
+ <CommandEmpty>Nothing found!</CommandEmpty>
53
+ )}
54
{sources.data?.map((source) => (
55
<CommandGroup
56
key={source.title}
0 commit comments