innertuber-rn
Version:
A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).
17 lines • 638 B
JavaScript
import { YTNode } from '../helpers.js';
import { Parser } from '../index.js';
import Text from './misc/Text.js';
class UniversalWatchCard extends YTNode {
constructor(data) {
super();
this.header = Parser.parseItem(data.header);
this.call_to_action = Parser.parseItem(data.callToAction);
this.sections = Parser.parseArray(data.sections);
if (Reflect.has(data, 'collapsedLabel')) {
this.collapsed_label = new Text(data.collapsedLabel);
}
}
}
UniversalWatchCard.type = 'UniversalWatchCard';
export default UniversalWatchCard;
//# sourceMappingURL=UniversalWatchCard.js.map