Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

chore: remove dead code (2026-07-17) (#4035)

Cindy Zhangef814e0c0f31
diff --git a/packages/core/src/Chat/ChatLayout.tsx b/packages/core/src/Chat/ChatLayout.tsx
index 16aa13e09d..a596df4a9e 100644
--- a/packages/core/src/Chat/ChatLayout.tsx
+++ b/packages/core/src/Chat/ChatLayout.tsx
@@ -39,17 +39,6 @@ import {themeProps} from '../utils/themeProps';
type Density = 'compact' | 'balanced' | 'spacious';
-/** Imperative handle for ChatLayout scroll controls. */
-export interface ChatLayoutHandle {
- /** Scroll a message to the top and unlock for stream-in. */
- /** Scroll to bottom and re-lock. */
- scrollToBottom: () => void;
- /** Navigate to a message, no lock change. */
- scrollToMessage: (el: HTMLElement) => void;
- /** Scroll to the last message. */
- scrollToLastMessage: () => void;
-}
-
export interface ChatLayoutProps extends BaseProps<HTMLDivElement> {
/** Ref forwarded to the root element. */
ref?: React.Ref<HTMLDivElement>;