aboutsummaryrefslogtreecommitdiff
path: root/src/components/PluginSettings/components/index.ts
blob: d1fe7d628315c0519afe1a39c2295620853ba349 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { PluginOptionBase } from "../../../utils/types";

export interface ISettingElementProps<T extends PluginOptionBase> {
    option: T;
    onChange(newValue: any): void;
    pluginSettings: {
        [setting: string]: any;
        enabled: boolean;
    };
    id: string;
    onError(hasError: boolean): void;
}

export * from "./SettingBooleanComponent";
export * from "./SettingNumericComponent";
export * from "./SettingSelectComponent";
export * from "./SettingTextComponent";