/** * External dependencies */ import { CHECKOUT_URL } from '@woocommerce/block-settings'; import Button from '@woocommerce/base-components/button'; import classNames from 'classnames'; import { useColorProps } from '@woocommerce/base-hooks'; /** * Internal dependencies */ import { defaultCheckoutButtonLabel } from './constants'; import { getVariant } from '../utils'; type MiniCartCheckoutButtonBlockProps = { checkoutButtonLabel?: string; className?: string; style?: string; }; const Block = ( { className, checkoutButtonLabel, style, }: MiniCartCheckoutButtonBlockProps ): JSX.Element | null => { const colorProps = useColorProps( { style } ); if ( ! CHECKOUT_URL ) { return null; } return ( ); }; export default Block;