Skip to content

Instantly share code, notes, and snippets.

@bnhansn
Created October 22, 2016 14:54
Show Gist options
  • Save bnhansn/a7d18aa66c31a72a5c2b3e66700efe13 to your computer and use it in GitHub Desktop.
Save bnhansn/a7d18aa66c31a72a5c2b3e66700efe13 to your computer and use it in GitHub Desktop.
// @flow
import React from 'react';
import { css, StyleSheet } from 'aphrodite';
const styles = StyleSheet.create({
navbar: {
padding: '15px',
background: '#fff',
borderBottom: '1px solid rgb(240,240,240)',
},
});
type Props = {
room: {
name: string,
},
}
const RoomNavbar = ({ room }: Props) =>
<nav className={css(styles.navbar)}>
<div>#{room.name}</div>
</nav>;
export default RoomNavbar;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment