Files
YouTube.js/lib/parser/contents/classes/Tab.js
2022-06-09 14:33:26 -03:00

17 lines
383 B
JavaScript

'use strict';
const Parser = require('..');
const NavigationEndpoint = require('./NavigationEndpoint');
class Tab {
type = 'tabRenderer';
constructor(data) {
this.title = data.title || 'N/A';
this.selected = data.selected || false;
this.endpoint = new NavigationEndpoint(data.endpoint);
this.content = Parser.parse(data.content);
}
}
module.exports = Tab;