UNPKG

innertuber-rn

Version:

A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).

24 lines 1.05 kB
import Button from './Button.js'; import MetadataBadge from './MetadataBadge.js'; import SubscribeButton from './SubscribeButton.js'; import Text from './misc/Text.js'; import Thumbnail from './misc/Thumbnail.js'; import { YTNode } from '../helpers.js'; import { Parser } from '../index.js'; class InteractiveTabbedHeader extends YTNode { constructor(data) { super(); this.header_type = data.type; this.title = new Text(data.title); this.description = new Text(data.description); this.metadata = new Text(data.metadata); this.badges = Parser.parseArray(data.badges, MetadataBadge); this.box_art = Thumbnail.fromResponse(data.boxArt); this.banner = Thumbnail.fromResponse(data.banner); this.buttons = Parser.parseArray(data.buttons, [SubscribeButton, Button]); this.auto_generated = new Text(data.autoGenerated); } } InteractiveTabbedHeader.type = 'InteractiveTabbedHeader'; export default InteractiveTabbedHeader; //# sourceMappingURL=InteractiveTabbedHeader.js.map