UNPKG

@np-dev/youtubei-js

Version:

A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).

23 lines 904 B
import NavigationEndpoint from './NavigationEndpoint.js'; import { YTNode } from '../helpers.js'; class ThumbnailOverlayToggleButton extends YTNode { constructor(data) { super(); if (Reflect.has(data, 'isToggled')) { this.is_toggled = data.isToggled; } this.icon_type = { toggled: data.toggledIcon.iconType, untoggled: data.untoggledIcon.iconType }; this.tooltip = { toggled: data.toggledTooltip, untoggled: data.untoggledTooltip }; this.toggled_endpoint = new NavigationEndpoint(data.toggledServiceEndpoint); this.untoggled_endpoint = new NavigationEndpoint(data.untoggledServiceEndpoint); } } ThumbnailOverlayToggleButton.type = 'ThumbnailOverlayToggleButton'; export default ThumbnailOverlayToggleButton; //# sourceMappingURL=ThumbnailOverlayToggleButton.js.map