mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 03:59:38 +00:00
17 lines
492 B
TypeScript
17 lines
492 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';
|
|
|
|
title: Text;
|
|
visibility_button: Button | null;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.title = new Text(data.title);
|
|
this.visibility_button = Parser.parseItem(data.visibilityButton, Button);
|
|
}
|
|
} |