/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import { Component, Fragment } from '@wordpress/element';
import { Button } from '@wordpress/components';
import interpolateComponents from 'interpolate-components';
/**
* WooCommerce dependencies
*/
import { ADMIN_URL as adminUrl } from '@woocommerce/wc-admin-settings';
import { Link, Stepper } from '@woocommerce/components';
class Klarna extends Component {
constructor( props ) {
super( props );
this.continue = this.continue.bind( this );
}
continue() {
const { markConfigured, plugin } = this.props;
const slug =
plugin === 'checkout' ? 'klarna-checkout' : 'klarna-payments';
markConfigured( slug );
}
renderConnectStep() {
const { plugin } = this.props;
const slug =
plugin === 'checkout' ? 'klarna-checkout' : 'klarna-payments';
const section = plugin === 'checkout' ? 'kco' : 'klarna_payments';
const link = (
);
const helpLink = (
);
const configureText = interpolateComponents( {
mixedString: __(
'Klarna can be configured under your {{link}}store settings{{/link}}. Figure out {{helpLink}}what you need{{/helpLink}}.',
'woocommerce-admin'
),
components: {
link,
helpLink,
},
} );
return (
{ configureText }
);
}
render() {
const { installStep } = this.props;
return (
);
}
}
export default Klarna;