import React from 'react'; import { Link } from 'react-router-dom'; import Section from '@polkadot/joy-utils/Section'; import { VideoPreviewProps, VideoPreview } from '../video/VideoPreview'; import { ChannelEntity } from '../entities/ChannelEntity'; import { ChannelPreview } from '../channels/ChannelPreview'; const LatestVideosTitle = () => (
Latest videos All videos
); const LatestChannelsTitle = () => (
Latest video channels All channels
); export type ExploreContentProps = { featuredVideos?: VideoPreviewProps[]; latestVideos?: VideoPreviewProps[]; latestVideoChannels?: ChannelEntity[]; } export function ExploreContent (props: ExploreContentProps) { const { featuredVideos = [], latestVideos = [], latestVideoChannels = [] } = props; return
{featuredVideos.length > 0 &&
{featuredVideos.map((x) => )}
} {latestVideos.length > 0 &&
}> {latestVideos.map((x) => )}
} {latestVideoChannels.length > 0 &&
}> {latestVideoChannels.map((x) => )}
}
; }