@antoniojps/youtubei.js
Version:
A JavaScript client for YouTube's private API, known as InnerTube.
19 lines • 559 B
JavaScript
import { YTNode } from '../helpers.js';
import { Parser } from '../index.js';
import CompactLink from './CompactLink.js';
import Text from './misc/Text.js';
export default class SettingsSidebar extends YTNode {
static type = 'SettingsSidebar';
title;
items;
constructor(data) {
super();
this.title = new Text(data.title);
this.items = Parser.parseArray(data.items, CompactLink);
}
// XXX: Alias for consistency.
get contents() {
return this.items;
}
}
//# sourceMappingURL=SettingsSidebar.js.map