2023-11-30 17:26:17 +08:00
|
|
|
'use strict'
|
|
|
|
|
2023-12-12 18:21:09 +08:00
|
|
|
import {LineWrapper} from "./Line";
|
|
|
|
import {RadioWrapper} from "./Radio";
|
|
|
|
import {SwitchWrapper} from "./Switch";
|
|
|
|
import {SwitchLineWrapper} from "./SwitchLine";
|
|
|
|
import {UnimplementedComponent} from "./UnimplementedComponent";
|
2024-02-02 17:24:01 +08:00
|
|
|
import {Label} from "./Label";
|
2023-11-30 17:26:17 +08:00
|
|
|
|
2024-01-02 17:13:50 +08:00
|
|
|
|
|
|
|
// Class components are used because we cannot use hooks for updating the state
|
2023-11-30 17:26:17 +08:00
|
|
|
export const componentsList = {
|
|
|
|
"Radio": RadioWrapper,
|
|
|
|
"Switch": SwitchWrapper,
|
|
|
|
"Line": LineWrapper,
|
|
|
|
"SwitchLine": SwitchLineWrapper,
|
2024-02-02 17:24:01 +08:00
|
|
|
"Label": Label,
|
2023-11-30 17:26:17 +08:00
|
|
|
"Default": UnimplementedComponent,
|
|
|
|
};
|