innertuber-rn
Version:
A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).
18 lines • 643 B
JavaScript
import { Parser } from '../index.js';
import NavigationEndpoint from './NavigationEndpoint.js';
import SectionList from './SectionList.js';
import MusicQueue from './MusicQueue.js';
import RichGrid from './RichGrid.js';
import { YTNode } from '../helpers.js';
class Tab extends YTNode {
constructor(data) {
super();
this.title = data.title || 'N/A';
this.selected = !!data.selected;
this.endpoint = new NavigationEndpoint(data.endpoint);
this.content = Parser.parseItem(data.content, [SectionList, MusicQueue, RichGrid]);
}
}
Tab.type = 'Tab';
export default Tab;
//# sourceMappingURL=Tab.js.map