/** * External dependencies */ import { Button as WPButton } from 'wordpress-components'; import type { Button as WPButtonType } from '@wordpress/components'; import classNames from 'classnames'; /** * Internal dependencies */ import './style.scss'; import Spinner from '../../../../../packages/components/spinner'; export interface ButtonProps extends Omit< WPButtonType.ButtonProps, 'variant' | 'href' > { /** * Show spinner * * @default false */ showSpinner?: boolean | undefined; /** * Button variant */ variant?: 'text' | 'contained' | 'outlined'; /** * The URL the button should link to. */ href?: string | undefined; } export interface AnchorProps extends Omit< ButtonProps, 'href' > { /** * Button href */ href?: string | undefined; } /** * Component that visually renders a button but semantically might be `