ragflow/web/src/pages/chat/index.tsx

15 lines
428 B
TypeScript
Raw Normal View History

import React from 'react';
import { connect, Dispatch } from 'umi';
import type { chatModelState } from './model'
2024-01-17 09:37:01 +08:00
interface chatProps {
chatModel: chatModelState;
dispatch: Dispatch
2024-01-17 09:37:01 +08:00
}
const View: React.FC<chatProps> = ({ chatModel, dispatch }) => {
const { name } = chatModel;
return <div>chat:{name} </div>;
2024-01-17 09:37:01 +08:00
};
export default connect(({ chatModel, loading }) => ({ chatModel, loading }))(View);