2024-01-18 18:27:38 +08:00
|
|
|
import React from 'react';
|
|
|
|
import { connect, Dispatch } from 'umi';
|
|
|
|
import type { chatModelState } from './model'
|
2024-01-17 09:37:01 +08:00
|
|
|
|
2024-01-18 18:27:38 +08:00
|
|
|
interface chatProps {
|
|
|
|
chatModel: chatModelState;
|
|
|
|
dispatch: Dispatch
|
2024-01-17 09:37:01 +08:00
|
|
|
}
|
|
|
|
|
2024-01-18 18:27:38 +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
|
|
|
};
|
|
|
|
|
2024-01-18 18:27:38 +08:00
|
|
|
export default connect(({ chatModel, loading }) => ({ chatModel, loading }))(View);
|