Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/chat/MessageInput.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import { useRef, useState, useCallback, useEffect, useMemo, type KeyboardEvent, type FormEvent } from 'react';
import { memo, useRef, useState, useCallback, useEffect, useMemo, type KeyboardEvent, type FormEvent } from 'react';
import { CodePilotIcon } from "@/components/ui/semantic-icon";
import { useTranslation } from '@/hooks/useTranslation';
import type { TranslationKey } from '@/i18n';
Expand Down Expand Up @@ -158,7 +158,7 @@ async function fileResponseToAttachment(
};
}

export function MessageInput({
export const MessageInput = memo(function MessageInput({
onSend,
onCommand,
onStop,
Expand Down Expand Up @@ -1136,4 +1136,4 @@ export function MessageInput({

</div>
);
}
});