mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 11:32:27 +00:00
19 lines
628 B
TypeScript
19 lines
628 B
TypeScript
import { YTNode } from '../helpers.ts';
|
|
import type { RawNode } from '../index.ts';
|
|
import NavigationEndpoint from './NavigationEndpoint.ts';
|
|
import AvatarView from './AvatarView.ts';
|
|
|
|
export default class DecoratedAvatarView extends YTNode {
|
|
static type = 'DecoratedAvatarView';
|
|
|
|
avatar: AvatarView;
|
|
a11y_label: string;
|
|
on_tap_endpoint: NavigationEndpoint;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.avatar = new AvatarView(data.avatar.avatarViewModel);
|
|
this.a11y_label = data.a11yLabel;
|
|
this.on_tap_endpoint = new NavigationEndpoint(data.rendererContext.commandContext.onTap.innertubeCommand);
|
|
}
|
|
} |