16 lines
552 B
TypeScript
16 lines
552 B
TypeScript
import React from 'react';
|
|
import { PayConfig, ConfigBase } from '../../../types/PayConfig';
|
|
type FC<T extends ConfigBase> = React.FC<{
|
|
config: T;
|
|
update: (config: Omit<T, 'channel'>) => void;
|
|
t: (k: string) => string;
|
|
}>;
|
|
export declare function registerPayConfigComponent<T extends ConfigBase>(channel: string, C: FC<T>): void;
|
|
export default function Upsert(props: {
|
|
config?: PayConfig | null;
|
|
channels: [string, string][];
|
|
update: (config: PayConfig) => void;
|
|
t: (k: string) => string;
|
|
}): React.JSX.Element;
|
|
export {};
|