import Parser from '..'; import { YTNode } from '../helpers'; import PlaylistPanelVideo from './PlaylistPanelVideo'; class PlaylistPanelVideoWrapper extends YTNode { static type = 'PlaylistPanelVideoWrapper'; primary: PlaylistPanelVideo | null; counterpart: Array; constructor(data: any) { super(); this.primary = Parser.parseItem(data.primaryRenderer); this.counterpart = data.counterpart?.map((item: any) => Parser.parseItem(item.counterpartRenderer)) || []; } } export default PlaylistPanelVideoWrapper;