diff --git a/src/components/MessageInputActions/Copilot.tsx b/src/components/MessageInputActions/Copilot.tsx deleted file mode 100644 index 5a3e476..0000000 --- a/src/components/MessageInputActions/Copilot.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import { cn } from '@/lib/utils'; -import { Switch } from '@headlessui/react'; - -const CopilotToggle = ({ - copilotEnabled, - setCopilotEnabled, -}: { - copilotEnabled: boolean; - setCopilotEnabled: (enabled: boolean) => void; -}) => { - return ( -
- - Copilot - - -

setCopilotEnabled(!copilotEnabled)} - className={cn( - 'text-xs font-medium transition-colors duration-150 ease-in-out', - copilotEnabled - ? 'text-[#24A0ED]' - : 'text-black/50 dark:text-white/50 group-hover:text-black dark:group-hover:text-white', - )} - > - Copilot -

-
- ); -}; - -export default CopilotToggle; diff --git a/src/components/MessageInputActions/Focus.tsx b/src/components/MessageInputActions/Focus.tsx deleted file mode 100644 index 58b1a39..0000000 --- a/src/components/MessageInputActions/Focus.tsx +++ /dev/null @@ -1,123 +0,0 @@ -import { - BadgePercent, - ChevronDown, - Globe, - Pencil, - ScanEye, - SwatchBook, -} from 'lucide-react'; -import { cn } from '@/lib/utils'; -import { - Popover, - PopoverButton, - PopoverPanel, - Transition, -} from '@headlessui/react'; -import { SiReddit, SiYoutube } from '@icons-pack/react-simple-icons'; -import { Fragment } from 'react'; -import { useChat } from '@/lib/hooks/useChat'; - -const focusModes = [ - { - key: 'webSearch', - title: 'All', - description: 'Searches across all of the internet', - icon: , - }, - { - key: 'academicSearch', - title: 'Academic', - description: 'Search in published academic papers', - icon: , - }, - { - key: 'writingAssistant', - title: 'Writing', - description: 'Chat without searching the web', - icon: , - }, - { - key: 'wolframAlphaSearch', - title: 'Wolfram Alpha', - description: 'Computational knowledge engine', - icon: , - }, - { - key: 'youtubeSearch', - title: 'Youtube', - description: 'Search and watch videos', - icon: , - }, - { - key: 'redditSearch', - title: 'Reddit', - description: 'Search for discussions and opinions', - icon: , - }, -]; - -const Focus = () => { - const { focusMode, setFocusMode } = useChat(); - - return ( - - - {focusMode !== 'webSearch' ? ( -
- {focusModes.find((mode) => mode.key === focusMode)?.icon} -
- ) : ( -
- -
- )} -
- - -
- {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 focus:outline-none', - focusMode === mode.key - ? 'bg-light-secondary dark:bg-dark-secondary' - : 'hover:bg-light-secondary dark:hover:bg-dark-secondary', - )} - > -
- {mode.icon} -

{mode.title}

-
-

- {mode.description} -

-
- ))} -
-
-
-
- ); -}; - -export default Focus;