export default ({ clock: { state: { lastUpdate, light } } }) => { return (
{format(new Date(lastUpdate))}
) } const format = t => `${pad(t.getUTCHours())}:${pad(t.getUTCMinutes())}:${pad(t.getUTCSeconds())}` const pad = n => (n < 10 ? `0${n}` : n)