UNPKG

@duell10111/youtubei.js

Version:

A JavaScript client for YouTube's private API, known as InnerTube.

18 lines 551 B
import { YTNode } from '../helpers.js'; import Thumbnail from './misc/Thumbnail.js'; import Text from './misc/Text.js'; export default class PreviewButton extends YTNode { static type = 'PreviewButton'; title; subtitle; thumbnail; byline; constructor(data) { super(); this.title = new Text(data.title); this.subtitle = new Text(data.subtitle); this.thumbnail = Thumbnail.fromResponse(data.thumbnail); this.byline = new Text(data.byline); } } //# sourceMappingURL=PreviewButton.js.map