32 lines
707 B
JavaScript
32 lines
707 B
JavaScript
// @flow
|
|
import * as React from 'react';
|
|
import styled, { withTheme } from 'styled-components';
|
|
import { NavLink } from 'react-router-dom';
|
|
|
|
const NavItem = styled(NavLink)`
|
|
display: inline-block;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
color: ${props => props.theme.divider};
|
|
letter-spacing: 0.04em;
|
|
margin-right: 24px;
|
|
padding-bottom: 8px;
|
|
|
|
&:hover {
|
|
color: ${props => props.theme.text};
|
|
}
|
|
`;
|
|
|
|
function Tab(props: *) {
|
|
const activeStyle = {
|
|
paddingBottom: '5px',
|
|
borderBottom: `3px solid ${props.theme.divider}`,
|
|
color: props.theme.textTertiary,
|
|
};
|
|
|
|
return <NavItem {...props} activeStyle={activeStyle} />;
|
|
}
|
|
|
|
export default withTheme(Tab);
|