| 1 |
import classNames from 'classnames' |
| 2 |
import { createElement } from '@wordpress/element' |
| 3 |
|
| 4 |
export default function Primary({ tagName = 'button', children, ...props }) { |
| 5 |
props.className = classNames( |
| 6 |
props.className, |
| 7 |
'bg-extendify-main hover:bg-extendify-main-dark cursor-pointer rounded no-underline text-base text-white flex justify-center items-center', |
| 8 |
) |
| 9 |
return createElement(tagName, props, children) |
| 10 |
} |
| 11 |
|