mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 00:11:49 +03:00
1bad6dee4e
no-issue
11 lines
441 B
JavaScript
11 lines
441 B
JavaScript
export default ({onClick, buttonClass, showSpinner, disabled, label}) => (
|
|
<div className="mt7">
|
|
<button type="submit" className={ (buttonClass ? buttonClass : 'gm-btn-blue') } onClick={onClick} disabled={ ((disabled || showSpinner) ? 'disabled' : '') }>
|
|
<span>
|
|
{ (showSpinner ? <span className="gm-spinner"></span> : '')}
|
|
{ label }
|
|
</span>
|
|
</button>
|
|
</div>
|
|
);
|