mirror of https://github.com/msgbyte/tailchat
feat: 增加引用时可以跳转到某个面板
parent
998e7a6707
commit
1e00834b1a
@ -0,0 +1,19 @@
|
||||
import React from 'react';
|
||||
import { Icon } from 'tailchat-design';
|
||||
|
||||
/**
|
||||
* 提及命令列表项
|
||||
*/
|
||||
export const MentionCommandItem: React.FC<{
|
||||
icon: string;
|
||||
label: string;
|
||||
}> = React.memo((props) => {
|
||||
return (
|
||||
<div className="flex items-center py-2 px-3">
|
||||
<Icon className="mr-1 text-lg" icon={props.icon} />
|
||||
|
||||
<div>{props.label}</div>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
MentionCommandItem.displayName = 'MentionCommandItem';
|
Loading…
Reference in New Issue