@leapwallet/embedded-wallet-sdk-react
Version:
A react library for integrating metamask snaps on a cosmos dApp
31 lines (30 loc) • 828 B
TypeScript
/// <reference types="react" />
export declare enum Actions {
SEND = "send",
IBC = "ibc",
BUY = "buy",
SWAP = "swap",
BRIDGE = "bridge"
}
export type ActionListConfig = Record<string, {
label?: string;
onClick?: () => void;
enabled?: boolean;
order?: number;
}>;
export type ActionProps = {
label: string;
onClick: () => void;
enabled: boolean;
icon: React.ReactNode;
};
export type ActionListType = Record<Actions, ActionProps>;
export type ActionListContextType = {
actionRecords: Record<Actions, ActionProps>;
showActionButtons: boolean;
};
export declare const ActionListContextProvider: React.FC<React.PropsWithChildren<{
config?: ActionListConfig;
showActionButtons?: boolean;
}>>;
export declare const useActionListContext: () => ActionListContextType;