import React, { Component } from 'react' import { View, Text, Dimensions } 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() { const middle = Dimensions.get('window').width / 2 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} : {this.props.title} ) } }