diff --git a/frontend/packages/app/components/launcher.tsx b/frontend/packages/app/components/launcher.tsx index cf9508bd7..619c9f55b 100644 --- a/frontend/packages/app/components/launcher.tsx +++ b/frontend/packages/app/components/launcher.tsx @@ -16,6 +16,7 @@ import { Input, ScrollView, SizableText, + Spinner, XStack, YStack, toast, @@ -240,6 +241,52 @@ function LauncherContent({onClose}: {input: {}; onClose: () => void}) { window.removeEventListener('keydown', keyPressHandler) } }, []) + let content = ( + + + {isDisplayingRecents ? ( + + Recent Resources + + ) : null} + {activeItems?.map((item, itemIndex) => { + return ( + + ) + })} + + + ) + + if (actionPromise) { + content = ( + + + + ) + } return ( void}) { } }} /> - - - {isDisplayingRecents ? ( - - Recent Resources - - ) : null} - {activeItems?.map((item, itemIndex) => { - return ( - - ) - })} - - + {content} ) }