mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 11:32:27 +00:00
21 lines
706 B
TypeScript
21 lines
706 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import { Parser, type RawNode } from '../index.js';
|
|
import Text from './misc/Text.js';
|
|
import Button from './Button.js';
|
|
|
|
export default class EngagementPanelTitleHeader extends YTNode {
|
|
static type = 'EngagementPanelTitleHeader';
|
|
|
|
public title: Text;
|
|
public visibility_button: Button | null;
|
|
public contextual_info?: Text;
|
|
public menu: YTNode | null;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.title = new Text(data.title);
|
|
this.contextual_info = data.contextualInfo ? new Text(data.contextualInfo) : undefined;
|
|
this.visibility_button = Parser.parseItem(data.visibilityButton, Button);
|
|
this.menu = Parser.parseItem(data.menu);
|
|
}
|
|
} |