/**
 * Brand button for Blockora Morph admin.
 */
export default function Button( {
	children,
	variant = 'primary',
	size,
	block = false,
	className = '',
	type = 'button',
	...props
} ) {
	const classes = [
		'bm-btn',
		variant ? `bm-btn--${ variant }` : '',
		size ? `bm-btn--${ size }` : '',
		block ? 'bm-btn--block' : '',
		className,
	]
		.filter( Boolean )
		.join( ' ' );

	return (
		<button type={ type } className={ classes } { ...props }>
			{ children }
		</button>
	);
}
