mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 03:22:15 +00:00
18 lines
452 B
TypeScript
18 lines
452 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import { Parser, type RawNode } from '../index.js';
|
|
import Button from './Button.js';
|
|
|
|
export default class CopyLink extends YTNode {
|
|
static type = 'CopyLink';
|
|
|
|
copy_button: Button | null;
|
|
short_url: string;
|
|
style: string;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.copy_button = Parser.parseItem(data.copyButton, Button);
|
|
this.short_url = data.shortUrl;
|
|
this.style = data.style;
|
|
}
|
|
} |