import React from "react"; import { PaymentMethodHeaderPropsInterface } from "./interfaces/PaymentMethodHeaderPropsInterface"; export class PaymentMethodHeader extends React.Component< PaymentMethodHeaderPropsInterface, any > { constructor(props: PaymentMethodHeaderPropsInterface) { super(props); } render() { const { label, iconSrc, iconAlt, providerLogoSrc } = this.props; return ( <> {label} {providerLogoSrc && ( <> Payment provider )} ); } }