Skip to content

Commit

Permalink
feat(EngagementPanelTitleHeader): Add contextual_info and menu
Browse files Browse the repository at this point in the history
Both con contain info about the comments section.
  • Loading branch information
LuanRT committed Nov 27, 2024
1 parent 92acd6c commit af3a916
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/parser/classes/EngagementPanelTitleHeader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ import Button from './Button.js';
export default class EngagementPanelTitleHeader extends YTNode {
static type = 'EngagementPanelTitleHeader';

title: Text;
visibility_button: Button | null;
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);
}
}

0 comments on commit af3a916

Please sign in to comment.