import React from 'react'
// import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import { Link } from 'react-router-dom'
import actions from 'app/actions'
import PlayButton from 'app/views/editor/align/components/player/playButton.component'
import './nav.css'
function Header(props) {
if (!props.router.location) return null
if (props.router.location.pathname.match("/viewer")) {
return null
}
if (props.router.location.pathname.match("/editor")) {
const episode_id = props.router.location.pathname.split('/')[1]
return (
Home
Overview
Timeline
Transcript
Media
Viewer
)
}
return (
{props.router.location.pathname !== '/' && (
Home
)}
Hi {props.currentUser.username}
{props.currentUser.is_admin && Users}
Logout