mirror of https://github.com/msgbyte/tailchat
feat: 为通用消息列表增加消息头
parent
6ed24c7f6f
commit
15741c3b2e
@ -0,0 +1,20 @@
|
||||
import React from 'react';
|
||||
import { Icon } from 'tailchat-design';
|
||||
import { t } from 'tailchat-shared';
|
||||
|
||||
export const ChatMessageHeader: React.FC<{
|
||||
title: React.ReactNode;
|
||||
}> = React.memo((props) => {
|
||||
return (
|
||||
<div className="px-5 pb-4">
|
||||
<div className="font-extrabold mb-2 text-2xl flex items-center space-x-1">
|
||||
<Icon icon="mdi:pound" />
|
||||
<div>{props.title}</div>
|
||||
</div>
|
||||
<div className="text-base opacity-80">
|
||||
{t('这里是所有消息的开始,请畅所欲言。')}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
ChatMessageHeader.displayName = 'ChatMessageHeader';
|
Loading…
Reference in New Issue