import React from 'react' import { css } from '@emotion/core' import { ChannelPreview, Gallery } from '@/shared/components' import { ChannelFields } from '@/api/queries/__generated__/ChannelFields' type ChannelGalleryProps = { title: string action?: string channels?: ChannelFields[] loading?: boolean } const ChannelGallery: React.FC = ({ title, action, channels, loading }) => { if (loading || !channels) { return

Loading

} return ( {channels.map((channel) => ( ))} ) } export default ChannelGallery