feat: train, news and weather

This commit is contained in:
Loic Coenen
2025-10-30 23:19:03 +01:00
parent 283b3e6885
commit b2a5031056
24 changed files with 796 additions and 41 deletions

View File

@@ -0,0 +1,24 @@
import styled from 'styled-components';
import { type Dispatch } from 'react';
import {
type State,
type Action
} from '../state';
import { Departure } from '../components';
import { NowTime } from '../components/NowTime';
type TrainScheduleProps = {
dispatch: Dispatch<Action>,
state: State,
}
export const TrainSchedule = ({ state } : TrainScheduleProps) => {
return <>
{state.liveboard?.departures.departure.map(departure => <Departure {...{departure}} />)}
<NowTime />
</>
}