Files
YouTube.js/src/parser/classes/comments/EmojiPicker.ts

39 lines
1.5 KiB
TypeScript

import { type ObservedArray, YTNode } from '../../helpers.js';
import type { RawNode } from '../../index.js';
import { Parser } from '../../index.js';
import Text from '../misc/Text.js';
export default class EmojiPicker extends YTNode {
static type = 'EmojiPicker';
id: string;
categories: ObservedArray<YTNode>;
category_buttons: ObservedArray<YTNode>;
search_placeholder: Text;
search_no_results: Text;
pick_skin_tone: Text;
clear_search_label: string;
skin_tone_generic_label: string;
skin_tone_light_label: string;
skin_tone_medium_light_label: string;
skin_tone_medium_label: string;
skin_tone_medium_dark_label: string;
skin_tone_dark_label: string;
constructor(data: RawNode) {
super();
this.id = data.id;
this.categories = Parser.parseArray(data.categories);
this.category_buttons = Parser.parseArray(data.categoryButtons);
this.search_placeholder = new Text(data.searchPlaceholderText);
this.search_no_results = new Text(data.searchNoResultsText);
this.pick_skin_tone = new Text(data.pickSkinToneText);
this.clear_search_label = data.clearSearchLabel;
this.skin_tone_generic_label = data.skinToneGenericLabel;
this.skin_tone_light_label = data.skinToneLightLabel;
this.skin_tone_medium_light_label = data.skinToneMediumLightLabel;
this.skin_tone_medium_label = data.skinToneMediumLabel;
this.skin_tone_medium_dark_label = data.skinToneMediumDarkLabel;
this.skin_tone_dark_label = data.skinToneDarkLabel;
}
}