mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
433 B
TypeScript
20 lines
433 B
TypeScript
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';
|