import Layout from '../Layout'; import type { IAgentScopeRuntimeWebUIOptions } from '@agentscope-ai/chat'; import { forwardRef, useMemo, useState } from 'react'; import AgentScopeRuntimeRequestCard from '../AgentScopeRuntime/Request/Card'; import AgentScopeRuntimeResponseCard from '../AgentScopeRuntime/Response/Card'; import ComposedProvider from './ComposedProvider'; import React from 'react'; interface IProps { options: IAgentScopeRuntimeWebUIOptions; } function ChatAnywhere(props: IProps, ref: React.Ref) { const { options = {} as IAgentScopeRuntimeWebUIOptions } = props; const cards = useMemo(() => { const res = { AgentScopeRuntimeRequestCard, AgentScopeRuntimeResponseCard, ...options.cards, }; return res; }, [options.cards]); return <> ; } export default forwardRef(ChatAnywhere);