@macalinao/grill
Version:
Modern Solana development kit for React applications with automatic account batching, caching, and transaction notifications
34 lines • 1.22 kB
TypeScript
import type { FC } from "react";
import type { TransactionStatusEvent } from "../types.js";
import type { GrillHeadlessProviderProps } from "./grill-headless-provider.js";
/**
* Props for the GrillProvider component
*/
export interface GrillProviderProps extends Omit<GrillHeadlessProviderProps, "onTransactionStatusEvent"> {
/**
* Optional custom handler for transaction status events.
* If not provided, will use default toast notifications.
*/
onTransactionStatusEvent?: (event: TransactionStatusEvent) => void;
/**
* Whether to show toast notifications for transaction status events.
* @default true
*/
showToasts?: boolean;
/**
* Duration in milliseconds for success toasts.
* @default 5000
*/
successToastDuration?: number;
/**
* Duration in milliseconds for error toasts.
* @default 7000
*/
errorToastDuration?: number;
}
/**
* Provider component for Solana account batching functionality with transaction toast notifications.
* Wraps GrillHeadlessProvider and adds automatic toast notifications via sonner.
*/
export declare const GrillProvider: FC<GrillProviderProps>;
//# sourceMappingURL=grill-provider.d.ts.map