mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-15 10:32:14 +00:00
21 lines
867 B
TypeScript
21 lines
867 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import { Parser, type RawNode } from '../index.js';
|
|
import DialogHeaderView from './DialogHeaderView.js';
|
|
import FormFooterView from './FormFooterView.js';
|
|
import CreatePlaylistDialogFormView from './CreatePlaylistDialogFormView.js';
|
|
import PanelFooterView from './PanelFooterView.js';
|
|
|
|
export default class DialogView extends YTNode {
|
|
static type = 'DialogView';
|
|
|
|
public header: DialogHeaderView | null;
|
|
public footer: FormFooterView | PanelFooterView | null;
|
|
public custom_content: CreatePlaylistDialogFormView | null;
|
|
|
|
constructor (data: RawNode) {
|
|
super();
|
|
this.header = Parser.parseItem(data.header, DialogHeaderView);
|
|
this.footer = Parser.parseItem(data.footer, [ FormFooterView, PanelFooterView ]);
|
|
this.custom_content = Parser.parseItem(data.customContent, CreatePlaylistDialogFormView);
|
|
}
|
|
} |