mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 11:32:27 +00:00
* (fix) `on_behalf_of_user` arg not applied * (feat) `AccountManager#getInfo()`: Add option to fetch full accounts list
20 lines
512 B
TypeScript
20 lines
512 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import { Parser, type RawNode } from '../index.js';
|
|
import { Text } from '../misc.js';
|
|
import Button from './Button.js';
|
|
|
|
export default class ChannelSwitcherHeader extends YTNode {
|
|
static type = 'ChannelSwitcherHeader';
|
|
|
|
title: string;
|
|
button?: Button | null;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.title = new Text(data.title).toString();
|
|
|
|
if (Reflect.has(data, 'button')) {
|
|
this.button = Parser.parseItem(data.button, Button);
|
|
}
|
|
}
|
|
} |