File size: 428 Bytes
fad2ec7 6b8fc2c fad2ec7 6b8fc2c fad2ec7 6b8fc2c fad2ec7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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); |