Created
September 30, 2016 03:55
-
-
Save oojacoboo/a98bb5cd5e76d21670186e68d21c2817 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
interface UserMenuInterface extends React.StatelessComponent<React.HTMLProps> { | |
user: { firstName: string }; | |
menuItems: JSX.Element; | |
} | |
const UserMenu: React.StatelessComponent<UserMenuInterface> = ({ user, menuItems }) => | |
/*eslint-disable max-len*/ | |
<li className='inline welcome' id='usermenu'> | |
<a href='#' className='user-menu-trigger green-link'> | |
Welcome, {user.firstName}<span className='down-arrow'>v</span> | |
</a> | |
<div className='user-menu-container'> | |
<ul className='user-menu'> | |
{menuItems} | |
</ul> | |
</div> | |
</li>; | |
export default UserMenu; |
Author
oojacoboo
commented
Sep 30, 2016
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment