mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 20:41:17 +00:00
19 lines
514 B
TypeScript
19 lines
514 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import { Parser, type RawNode } from '../index.js';
|
|
import Menu from './menus/Menu.js';
|
|
import Text from './misc/Text.js';
|
|
|
|
export default class EmergencyOnebox extends YTNode {
|
|
static type = 'EmergencyOnebox';
|
|
|
|
title: Text;
|
|
first_option: YTNode;
|
|
menu: Menu | null;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.title = new Text(data.title);
|
|
this.first_option = Parser.parseItem(data.firstOption);
|
|
this.menu = Parser.parseItem(data.menu, Menu);
|
|
}
|
|
} |