Files
ragflow_python/web/src/pages/chat/index.tsx
yqj123 fad2ec7cf3 update knowledge_kb (#34)
* update typescript

* add chunk api

* remove useless code
2024-01-18 18:27:38 +08:00

15 lines
428 B
TypeScript

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