import React from 'react'; import PropTypes from 'prop-types'; import { Button } from './Button'; import './header.css'; export const Header = ({ user, onLogin, onLogout, onCreateAccount }) => (

Acme

{user ? (
); Header.propTypes = { user: PropTypes.shape({}), onLogin: PropTypes.func.isRequired, onLogout: PropTypes.func.isRequired, onCreateAccount: PropTypes.func.isRequired, }; Header.defaultProps = { user: null, };