react-girocode
Version:
A react component for displaying an EPC-QR-Code
24 lines (23 loc) • 686 B
TypeScript
import React from "react";
import { Encoding } from "./constants";
interface BasicProps {
encoding?: Encoding;
bic?: string;
recipient: string;
iban: string;
amount?: number;
purpose?: string;
information?: string;
render?: (data: string) => React.ReactNode;
}
interface PropsWithReference extends BasicProps {
reference?: string;
text?: never;
}
interface PropsWithText extends BasicProps {
reference?: never;
text?: string;
}
type Props = PropsWithReference | PropsWithText;
export declare function Girocode({ encoding, bic, recipient, iban, amount, purpose, reference, text, information, render, }: Props): React.ReactNode;
export {};