UNPKG

@imput/youtubei.js

Version:

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

20 lines 670 B
import { YTNode } from '../helpers.js'; class ThumbnailBadgeView extends YTNode { constructor(data) { super(); this.text = data.text; this.badge_style = data.badgeStyle; if (data.backgroundColor) { this.background_color = { light_theme: data.backgroundColor.lightTheme, dark_theme: data.backgroundColor.darkTheme }; } if (data.iconName) { this.icon_name = data.icon.sources[0].clientResource.imageName; } } } ThumbnailBadgeView.type = 'ThumbnailBadgeView'; export default ThumbnailBadgeView; //# sourceMappingURL=ThumbnailBadgeView.js.map