Files
NapCatQQ/napcat.webui/src/components/chat_input/components/rps_insert.tsx
T
时瑾 06f6a542f5 refactor: 优化eslint配置,提升代码质量 (#1341)
* feat: 统一并标准化eslint

* lint: napcat.webui

* lint: napcat.webui

* lint: napcat.core

* build: fix

* lint: napcat.webui

* refactor: 重构eslint

* Update README.md
2025-11-03 16:30:45 +08:00

32 lines
711 B
TypeScript

import { Button } from '@heroui/button';
import { Tooltip } from '@heroui/tooltip';
import { LiaHandScissors } from 'react-icons/lia';
import useShowStructuredMessage from '@/hooks/use_show_strcuted_message';
const RPSInsert = () => {
const showStructuredMessage = useShowStructuredMessage();
return (
<Tooltip content='发送猜拳'>
<Button
color='primary'
variant='flat'
isIconOnly
radius='full'
onPress={() => {
showStructuredMessage([
{
type: 'rps',
},
]);
}}
>
<LiaHandScissors className='text-2xl' />
</Button>
</Tooltip>
);
};
export default RPSInsert;