UNPKG

@lifi/widget

Version:

LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.

21 lines (18 loc) 630 B
import { shallow } from 'zustand/shallow' import { useBookmarkStore } from './BookmarkStore.js' import type { BookmarkActions } from './types.js' export const useBookmarkActions = () => { const actions = useBookmarkStore<BookmarkActions>( (store) => ({ getBookmark: store.getBookmark, addBookmark: store.addBookmark, removeBookmark: store.removeBookmark, setSelectedBookmark: store.setSelectedBookmark, getSelectedBookmark: store.getSelectedBookmark, addRecentWallet: store.addRecentWallet, removeRecentWallet: store.removeRecentWallet, }), shallow ) return actions }