@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) • 551 B
text/typescript
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,
}))
return actions
}