/**
 * Brand card surface for Blockora Morph admin.
 */
export default function Card( { children, padded = false, className = '', as: Tag = 'div' } ) {
	const classes = [ 'bm-card', padded ? 'bm-card--padded' : '', className ]
		.filter( Boolean )
		.join( ' ' );

	return <Tag className={ classes }>{ children }</Tag>;
}
