import { h } from 'preact';

import formatTime from '../util/formatTime';

export default (props) => (
  <li>
    <span class="line">{props.Line.Name}</span>
    <ul>
      <li>{formatTime(props.DepDateTime)} {props.From.Name}</li>
      <li>{formatTime(props.ArrDateTime)} {props.To.Name}</li>
    </ul>
  </li>
);
