import react from 'react'; import { __ } from '@wordpress/i18n'; const ButtonIcon = ({ icon, position }) => { const newPosition = position == 'before' ? 'left' : 'right'; return ( ) } const Button = ({ label, permalink, showIcon, position, icon }) => { return ( e.preventDefault()} className="docs-cat-link-btn betterdocs-category-link-btn" href={permalink}> {showIcon && position === 'before' && } {label ?? __('Explore More', 'betterdocs')} {showIcon && position === 'after' && } ) } export default Button;