import Text from './misc/Text'; import { timeToSeconds } from '../../utils/Utils'; import { YTNode } from '../helpers'; class WatchCardCompactVideo extends YTNode { static type = 'WatchCardCompactVideo'; constructor(data) { super(); this.title = new Text(data.title); this.subtitle = new Text(data.subtitle); this.duration = { text: new Text(data.lengthText).toString(), seconds: timeToSeconds(data.lengthText.simpleText) }; this.style = data.style; } } export default WatchCardCompactVideo;