oak-pay-business/es/components/pay/channelPicker/index.d.ts

24 lines
843 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/// <reference types="react" />
import { PayConfig } from "../../../types/PayConfig";
/**
* 支持自定义支付通道的选择器注入
* 未来遇到真正需求时再实现by Xc 20240426
*/
export type ExtraPicker = {
label: string;
name: string;
icon: React.ForwardRefExoticComponent<any>;
component?: React.ForwardRefExoticComponent<{
onSetMeta?: (meta: object) => void;
}>;
};
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, keyof import("../../../oak-app-domain").EntityDict, boolean, {
payConfig: PayConfig;
channel: string;
meta: object;
extraChannelPickers: ExtraPicker[];
onPick: (channel: string) => void;
onSetMeta: (meta?: object) => void;
}>) => React.ReactElement;
export default _default;