innertuber-rn
Version:
A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).
17 lines • 655 B
JavaScript
import { YTNode } from '../helpers.js';
import { Parser } from '../index.js';
import Button from './Button.js';
import Text from './misc/Text.js';
class UpsellDialog extends YTNode {
constructor(data) {
super();
this.message_title = new Text(data.dialogMessageTitle);
this.message_text = new Text(data.dialogMessageText);
this.action_button = Parser.parseItem(data.actionButton, Button);
this.dismiss_button = Parser.parseItem(data.dismissButton, Button);
this.is_visible = data.isVisible;
}
}
UpsellDialog.type = 'UpsellDialog';
export default UpsellDialog;
//# sourceMappingURL=UpsellDialog.js.map