diff --git a/components/Chat/ChatLayout.tsx b/components/Chat/ChatLayout.tsx index aad87a2..d4cb903 100644 --- a/components/Chat/ChatLayout.tsx +++ b/components/Chat/ChatLayout.tsx @@ -24,6 +24,7 @@ import { Stack, Text, TextInput, + TextInputProps, Title, Tooltip, UnstyledButton, @@ -48,6 +49,25 @@ interface Chat { messages?: Message[]; } +export function InputWithButton(props: TextInputProps) { + const theme = useMantineTheme(); + + return ( + + + + } + {...props} + /> + ); +} + export default function ChatLayout() { const [mobileOpened, { toggle: toggleMobile }] = useDisclosure(); const [desktopOpened, { toggle: toggleDesktop }] = useDisclosure(true); @@ -342,29 +362,28 @@ export default function ChatLayout() { borderColor: isInputFocused ? theme.colors[primaryColor][6] : undefined, }} > - - setInputValue(event.currentTarget.value)} - onKeyDown={handleKeyDown} - onFocus={() => setIsInputFocused(true)} - onBlur={() => setIsInputFocused(false)} - style={{ flex: 1, paddingLeft: rem(10) }} - size="md" - /> - - - - + setInputValue(event.currentTarget.value)} + onKeyDown={handleKeyDown} + onFocus={() => setIsInputFocused(true)} + onBlur={() => setIsInputFocused(false)} + style={{ flex: 1, paddingLeft: rem(10) }} + rightSection={ + + + + } + />