package io.fabs.vue.vuex.settings;

import com.intellij.openapi.project.Project;
import io.fabs.util.settings.AbstractSettingsForm;
import io.fabs.util.settings.AbstractSettingsUI;
import io.fabs.vue.vuex.widget.VuexCreateOptions;
import io.fabs.vue.vuex.VuexSettingsState;

public class VuexSettings extends AbstractSettingsUI<VuexCreateOptions> {
    public VuexSettings(Project project) {
        super(project, "Component");
    }

    @Override
    public VuexCreateOptions getOptions() {
        return VuexSettingsState.getInstance(project).getOptions();
    }

    @Override
    public AbstractSettingsForm createUi() {
        return new VuexSettingsForm(getOptions());
    }
}
