innertuber-rn
Version:
A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).
20 lines • 877 B
JavaScript
import { YTNode } from '../helpers.js';
import { Parser } from '../index.js';
import NavigationEndpoint from './NavigationEndpoint.js';
import SubscribeButton from './SubscribeButton.js';
import Text from './misc/Text.js';
import Thumbnail from './misc/Thumbnail.js';
class TopicChannelDetails extends YTNode {
constructor(data) {
var _a;
super();
this.title = new Text(data.title);
this.avatar = Thumbnail.fromResponse((_a = data.thumbnail) !== null && _a !== void 0 ? _a : data.avatar);
this.subtitle = new Text(data.subtitle);
this.subscribe_button = Parser.parseItem(data.subscribeButton, SubscribeButton);
this.endpoint = new NavigationEndpoint(data.navigationEndpoint);
}
}
TopicChannelDetails.type = 'TopicChannelDetails';
export default TopicChannelDetails;
//# sourceMappingURL=TopicChannelDetails.js.map