mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-07 02:01:50 +01:00
10 lines
352 B
TypeScript
10 lines
352 B
TypeScript
|
|
import { createContext, useContext } from 'react';
|
||
|
|
import type { TConversationTag } from 'librechat-data-provider';
|
||
|
|
|
||
|
|
type TBookmarkContext = { bookmarks: TConversationTag[] };
|
||
|
|
|
||
|
|
export const BookmarkContext = createContext<TBookmarkContext>({
|
||
|
|
bookmarks: [],
|
||
|
|
} as TBookmarkContext);
|
||
|
|
export const useBookmarkContext = () => useContext(BookmarkContext);
|