mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-20 13:01:31 +00:00
18 lines
547 B
TypeScript
18 lines
547 B
TypeScript
import Parser from '..';
|
|
import ToggleButton from './ToggleButton';
|
|
import { YTNode } from '../helpers';
|
|
|
|
class SegmentedLikeDislikeButton extends YTNode {
|
|
static type = 'SegmentedLikeDislikeButton';
|
|
|
|
like_button: ToggleButton | null;
|
|
dislike_button: ToggleButton | null;
|
|
|
|
constructor (data: any) {
|
|
super();
|
|
this.like_button = Parser.parseItem<ToggleButton>(data.likeButton, ToggleButton);
|
|
this.dislike_button = Parser.parseItem<ToggleButton>(data.dislikeButton, ToggleButton);
|
|
}
|
|
}
|
|
|
|
export default SegmentedLikeDislikeButton; |