soso-widget
Version:
LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
16 lines (15 loc) • 572 B
TypeScript
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;
headerHeight: number;
}
export interface HeaderState extends HeaderStateBase {
setAction(element?: React.ReactNode | null): () => void;
setTitle(title?: string): () => void;
removeAction(): void;
removeTitle(): void;
setHeaderHeight(headerHeight: number): void;
}