Ghost/ghost/members-auth-pages/components/FormHeader.js
Fabien O'Carroll 1bad6dee4e Fixed linting for auth-pages
no-issue
2019-05-07 17:15:50 +02:00

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>
);