Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

Refactor Imports in AI Chat Components to Use Type Definitions

Salman-Ahamedafe4637269e2
diff --git a/packages/app/src/react/features/ai-chat/components/chats.tsx b/packages/app/src/react/features/ai-chat/components/chats.tsx
index 411d9526..2204aacc 100644
--- a/packages/app/src/react/features/ai-chat/components/chats.tsx
+++ b/packages/app/src/react/features/ai-chat/components/chats.tsx
@@ -1,8 +1,8 @@
/* eslint-disable no-unused-vars */
-import { IChatMessage } from '@react/features/ai-chat';
import { Chat, MessageTurnGroup } from '@react/features/ai-chat/components';
import { useChatContext } from '@react/features/ai-chat/contexts';
import { useDragAndDrop } from '@react/features/ai-chat/hooks';
+import { IChatMessage } from '@react/features/ai-chat/types/chat.types';
import { AgentDetails } from '@src/react/shared/types/agent-data.types';
import { FC, MutableRefObject, RefObject, useEffect, useMemo, useRef } from 'react';
diff --git a/packages/app/src/react/features/ai-chat/components/file-item-preview.tsx b/packages/app/src/react/features/ai-chat/components/file-item-preview.tsx
index af97da29..836c295c 100644
--- a/packages/app/src/react/features/ai-chat/components/file-item-preview.tsx
+++ b/packages/app/src/react/features/ai-chat/components/file-item-preview.tsx
@@ -1,4 +1,4 @@
-import { IMessageFile } from '@react/features/ai-chat';
+import { IMessageFile } from '@react/features/ai-chat/types/chat.types';
import classNames from 'classnames';
import { FC, useEffect, useMemo, useState } from 'react';
import {
diff --git a/packages/app/src/react/features/ai-chat/components/user-message.tsx b/packages/app/src/react/features/ai-chat/components/user-message.tsx
index 13d48612..287c2915 100644
--- a/packages/app/src/react/features/ai-chat/components/user-message.tsx
+++ b/packages/app/src/react/features/ai-chat/components/user-message.tsx
@@ -1,5 +1,5 @@
-import { IMessageFile } from '@react/features/ai-chat';
import { FileItemPreview } from '@react/features/ai-chat/components';
+import { IMessageFile } from '@react/features/ai-chat/types/chat.types';
import { FC } from 'react';
/**