feat(LiveChat): add SegmentedLikeDislikeButton and LiveChatDialog (#181)

* feat: add `LiveChatDialog`

* feat: add `SegmentedLikeDislikeButton`
This commit is contained in:
LuanRT
2022-09-10 14:54:13 -03:00
committed by GitHub
parent eb44b71939
commit 91847ae3cc
3 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
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;