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