File separation

This commit is contained in:
2022-09-15 09:16:44 +03:00
parent 128e10db07
commit 94978f8f54
13 changed files with 527 additions and 505 deletions

13
src/chatSettingsLine.ts Normal file
View File

@@ -0,0 +1,13 @@
import {CustomButtonElement, CustomDivElement} from "./CustomHTMLElement";
export default function createChatSettingsLine(text: string) {
const element = new CustomDivElement('twitch-notes-settings-option-line');
const button = new CustomButtonElement('twitch-notes-settings-option-line-button');
const buttonContainer = new CustomDivElement('twitch-notes-settings-option-line-button-container');
const buttonContainerContent = new CustomDivElement('twitch-notes-settings-option-line-button-container-content', text);
buttonContainer.appendCustomChild(buttonContainerContent);
button.appendCustomChild(buttonContainer);
element.appendCustomChild(button);
return element;
}