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.

17 lines (14 loc) 438 B
import { shallow } from 'zustand/shallow' import { useBookmarkStore } from './BookmarkStore.js' import type { BookmarkProps } from './types.js' export const useBookmarks = (): BookmarkProps => { const [bookmarks, selectedBookmark, recentWallets] = useBookmarkStore( (store) => [store.bookmarks, store.selectedBookmark, store.recentWallets], shallow ) return { bookmarks, selectedBookmark, recentWallets, } }