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.

15 lines (14 loc) 529 B
/// <reference types="react" /> import type { StoreApi } from 'zustand'; import type { UseBoundStoreWithEqualityFn } from 'zustand/traditional'; export type HeaderStore = UseBoundStoreWithEqualityFn<StoreApi<HeaderState>>; export interface HeaderStateBase { element?: React.ReactNode | null; title?: string; } export interface HeaderState extends HeaderStateBase { setAction(element?: React.ReactNode | null): () => void; setTitle(title?: string): () => void; removeAction(): void; removeTitle(): void; }