import React, { Component } from 'react'
import {
View,
Text
} from 'react-native'
import styles, { iconStyles } from '../styles'
import Icon from 'react-native-vector-icons/MaterialCommunityIcons'
import { formatDateForViewHeader } from '../components/cycle-day/labels/format'
export default class Header extends Component {
render() {
console.log(this.props)
return (
this.props.isCycleDayOverView ?
this.props.goToCycleDay('before')}
/>
{formatDateForViewHeader(this.props.date)}
{this.props.cycleDayNumber &&
Cycle day {this.props.cycleDayNumber}
}
this.props.goToCycleDay('after')}
/>
: this.props.isSymptomView ?
this.props.goBack()}
/>
{this.props.title}
{formatDateForViewHeader(this.props.date)}
:
{this.props.title}
)
}
}