mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-22 03:10:15 +01:00
Add presets and endpoints data services
This commit is contained in:
parent
f2d18c81fc
commit
3d0bfaef51
5 changed files with 102 additions and 126 deletions
|
|
@ -3,16 +3,16 @@ import store from '~/store';
|
|||
import TrashIcon from '../svg/TrashIcon';
|
||||
import { Dialog, DialogTrigger } from '../ui/Dialog.tsx';
|
||||
import DialogTemplate from '../ui/DialogTemplate';
|
||||
import { useDeleteConversationMutation } from '~/data-provider';
|
||||
import { useClearConversationsMutation } from '~/data-provider';
|
||||
|
||||
export default function ClearConvos() {
|
||||
const { newConversation } = store.useConversation();
|
||||
const { refreshConversations } = store.useConversations();
|
||||
const clearConvosMutation = useDeleteConversationMutation();
|
||||
const clearConvosMutation = useClearConversationsMutation();
|
||||
|
||||
const clickHandler = () => {
|
||||
console.log('Clearing conversations...');
|
||||
clearConvosMutation.mutate({});
|
||||
clearConvosMutation.mutate();
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue