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.
tailchat/client/web/src/components/ChatBox/ChatInputBox/MentionCommandItem.tsx

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';