import React, { FC } from 'react' import { Button } from '@wordpress/components' import ActivationStartFailed from './ActivationStartFailed' import { useMybringActivation } from './useMybringActivation' export declare interface MybringActivationButtonProps { label: string variant?: 'primary' | 'secondary' } /** * Starts an activation and takes the merchant to Mybring to choose the * webshop this shop should be connected to. */ const MybringActivationButton: FC = ({ label, variant = 'secondary', }) => { const { start, starting, failed } = useMybringActivation() return ( <> {failed && (
)} ) } export default MybringActivationButton