mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 17:47:27 +00:00
* add document service * add file item * add file content for direct upload file * fix tests * fix tests * fix tests * add debug log for file-loaders * add debug log and test * improve loading * update tests * fix pdf parser * fix pdf version * fix pdf worker url * fix pdf worker url * fix test
19 lines
553 B
TypeScript
19 lines
553 B
TypeScript
import { ActionIconGroup } from '@lobehub/ui';
|
|
import type { ChatActionsBarProps } from '@lobehub/ui/chat';
|
|
import { memo } from 'react';
|
|
|
|
import { useChatListActionsBar } from '../hooks/useChatListActionsBar';
|
|
|
|
export const ErrorActionsBar = memo<ChatActionsBarProps>(({ onActionClick }) => {
|
|
const { regenerate, copy, edit, del, divider } = useChatListActionsBar();
|
|
|
|
return (
|
|
<ActionIconGroup
|
|
items={[regenerate, del]}
|
|
menu={{
|
|
items: [edit, copy, divider, del],
|
|
}}
|
|
onActionClick={onActionClick}
|
|
/>
|
|
);
|
|
});
|