import { Component, ReactNode } from "react"; import { Popup } from "@Context/Popups"; import { Theme } from "@Component/Theme/Theme"; import { Localization } from "@Component/Localization/Localization"; import { useSettingWithEvent, IMixinSettingProps, Themes } from "@Context/Setting"; import { ComboInput } from "@Input/ComboInput/ComboInput"; import "./SettingPopup.scss"; interface ISettingPopupProps { } class SettingPopup extends Popup { public minWidth: number = 400; public minHeight: number = 300; public width: number = 600; public height: number = 450; public onRenderHeader(): ReactNode { return } public render(): ReactNode { return } } @useSettingWithEvent("themes", "language") class SettingPopupComponent extends Component { public render(): ReactNode { return { this.props.setting?.setProps("language", data.key as any); }} /> { this.props.setting?.setProps("themes", parseInt(data.key)); }} /> } } export { SettingPopup };