diff --git a/src/components/MessageInputActions/Focus.tsx b/src/components/MessageInputActions/Focus.tsx index 9b2c95b..58b1a39 100644 --- a/src/components/MessageInputActions/Focus.tsx +++ b/src/components/MessageInputActions/Focus.tsx @@ -22,13 +22,13 @@ const focusModes = [ key: 'webSearch', title: 'All', description: 'Searches across all of the internet', - icon: , + icon: , }, { key: 'academicSearch', title: 'Academic', description: 'Search in published academic papers', - icon: , + icon: , }, { key: 'writingAssistant', @@ -40,19 +40,19 @@ const focusModes = [ key: 'wolframAlphaSearch', title: 'Wolfram Alpha', description: 'Computational knowledge engine', - icon: , + icon: , }, { key: 'youtubeSearch', title: 'Youtube', description: 'Search and watch videos', - icon: , + icon: , }, { key: 'redditSearch', title: 'Reddit', description: 'Search for discussions and opinions', - icon: , + icon: , }, ]; @@ -60,23 +60,18 @@ const Focus = () => { const { focusMode, setFocusMode } = useChat(); return ( - + {focusMode !== 'webSearch' ? (
{focusModes.find((mode) => mode.key === focusMode)?.icon} -

- {focusModes.find((mode) => mode.key === focusMode)?.title} -

-
) : (
- -

Focus

+
)}
@@ -89,14 +84,14 @@ const Focus = () => { leaveFrom="opacity-100 translate-y-0" leaveTo="opacity-0 translate-y-1" > - +
{focusModes.map((mode, i) => ( setFocusMode(mode.key)} key={i} className={cn( - 'p-2 rounded-lg flex flex-col items-start justify-start text-start space-y-2 duration-200 cursor-pointer transition', + 'p-2 rounded-lg flex flex-col items-start justify-start text-start space-y-2 duration-200 cursor-pointer transition focus:outline-none', focusMode === mode.key ? 'bg-light-secondary dark:bg-dark-secondary' : 'hover:bg-light-secondary dark:hover:bg-dark-secondary',