UNPKG

@imput/youtubei.js

Version:

A JavaScript client for YouTube's private API, known as InnerTube. Fork of youtubei.js

19 lines 828 B
import { YTNode } from '../helpers.js'; import { Thumbnail } from '../misc.js'; import NavigationEndpoint from './NavigationEndpoint.js'; import Text from './misc/Text.js'; class HashtagTile extends YTNode { constructor(data) { super(); this.hashtag = new Text(data.hashtag); this.hashtag_info_text = new Text(data.hashtagInfoText); this.hashtag_thumbnail = Thumbnail.fromResponse(data.hashtagThumbnail); this.endpoint = new NavigationEndpoint(data.onTapCommand); this.hashtag_background_color = data.hashtagBackgroundColor; this.hashtag_video_count = new Text(data.hashtagVideoCount); this.hashtag_channel_count = new Text(data.hashtagChannelCount); } } HashtagTile.type = 'HashtagTile'; export default HashtagTile; //# sourceMappingURL=HashtagTile.js.map