import React from 'react'; import PropTypes from 'prop-types'; import { stringFromMillis } from '../../utils/time'; import style from './Paginator.module.scss'; export default function TodayItem(props) { const { selected, timeStart, timeEnd, title, backstageEvent, colour } = props; // Format timers const start = stringFromMillis(timeStart, false) || ''; const end = stringFromMillis(timeEnd, false) || ''; // user colours const userColour = colour !== '' ? colour : 'transparent'; // select styling let selectStyle = style.entryPast; if (selected === 1) selectStyle = style.entryNow; else if (selected === 2) selectStyle = style.entryFuture; return (