mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 16:01:40 +03:00
1bad6dee4e
no-issue
16 lines
407 B
JavaScript
16 lines
407 B
JavaScript
import {IconError} from './icons';
|
|
|
|
export default ({title, error, errorText, children}) => (
|
|
<div>
|
|
<div className="gm-auth-header">
|
|
{ title ? (<h1>{title}</h1>) : '' }
|
|
{ children }
|
|
</div>
|
|
{(error ?
|
|
<div class="gm-form-errortext"><i>{ IconError }</i>
|
|
<span> {errorText} </span>
|
|
</div> : '')
|
|
}
|
|
</div>
|
|
);
|