commons/client/src/routes/Channels.tsx

26 lines
828 B
TypeScript
Raw Normal View History

import React, { Component } from 'react'
import Route from '../components/templates/Route'
import Content from '../components/atoms/Content'
import channels from '../data/channels.json'
import ChannelTeaser from '../components/organisms/ChannelTeaser'
import withTracker from '../hoc/withTracker'
class Channels extends Component {
public render() {
return (
2019-05-23 15:53:37 +02:00
<Route title={channels.title} description={channels.description}>
<Content wide>
2020-05-19 10:36:18 +02:00
{channels.items.map((channel) => (
<ChannelTeaser
key={channel.title}
channel={channel.tag}
/>
))}
</Content>
</Route>
)
}
}
export default withTracker(Channels)