Ghost/ghost/members-auth-pages/components/FormHeader.js

16 lines
407 B
JavaScript
Raw Normal View History

2019-05-07 11:29:07 +03:00
import {IconError} from './icons';
export default ({title, error, errorText, children}) => (
<div>
<div className="gm-auth-header">
2019-05-07 11:29:07 +03:00
{ title ? (<h1>{title}</h1>) : '' }
{ children }
</div>
{(error ?
<div class="gm-form-errortext"><i>{ IconError }</i>
<span> {errorText} </span>
2019-05-07 11:29:07 +03:00
</div> : '')
}
</div>
);