mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 12:31:17 +00:00
chore: clean up build steps
This commit is contained in:
17
src/parser/classes/SearchBox.js
Normal file
17
src/parser/classes/SearchBox.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import Parser from '../index';
|
||||
import Text from './misc/Text';
|
||||
import NavigationEndpoint from './NavigationEndpoint';
|
||||
|
||||
import { YTNode } from '../helpers';
|
||||
|
||||
class SearchBox extends YTNode {
|
||||
static type = 'SearchBox';
|
||||
constructor(data) {
|
||||
super();
|
||||
this.endpoint = new NavigationEndpoint(data.endpoint);
|
||||
this.search_button = Parser.parse(data.searchButton);
|
||||
this.clear_button = Parser.parse(data.clearButton);
|
||||
this.placeholder_text = new Text(data.placeholderText);
|
||||
}
|
||||
}
|
||||
export default SearchBox;
|
||||
Reference in New Issue
Block a user