UNPKG

@antoniojps/youtubei.js

Version:

A JavaScript client for YouTube's private API, known as InnerTube.

17 lines 543 B
import { YTNode } from '../helpers.js'; import { Parser } from '../index.js'; import { Text } from '../misc.js'; import Button from './Button.js'; export default class ChannelSwitcherHeader extends YTNode { static type = 'ChannelSwitcherHeader'; title; button; constructor(data) { super(); this.title = new Text(data.title).toString(); if (Reflect.has(data, 'button')) { this.button = Parser.parseItem(data.button, Button); } } } //# sourceMappingURL=ChannelSwitcherHeader.js.map