mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-22 14:08:06 +00:00
18 lines
545 B
TypeScript
18 lines
545 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import { Parser, type RawNode } from '../index.js';
|
|
import ButtonView from './ButtonView.js';
|
|
|
|
export default class CarouselTitleView extends YTNode {
|
|
static type = 'CarouselTitleView';
|
|
|
|
title: string;
|
|
previous_button: ButtonView | null;
|
|
next_button: ButtonView | null;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.title = data.title;
|
|
this.previous_button = Parser.parseItem(data.previousButton, ButtonView);
|
|
this.next_button = Parser.parseItem(data.nextButton, ButtonView);
|
|
}
|
|
} |