opendash
Version:
open.DASH data visualization framework
45 lines • 1.87 kB
JavaScript
import * as React from "react";
import { useTranslation } from "../..";
import { Select } from "./select";
import { Description } from "./layout";
export var Settings = function (_a) {
var state = _a.state, updateState = _a.updateState;
var t = useTranslation(["opendash"])[0];
return (React.createElement(React.Fragment, null,
React.createElement(Description, { children: t("data_explorer.step_3_raw_format") }),
React.createElement(Select, { value: state.settings.format, size: 4, onChange: function (nextValue) {
updateState(function (draft) {
draft.settings.format = nextValue;
});
}, options: [
{
label: t("data_explorer.step_3_raw_json"),
icon: "file",
tooltip: null,
value: "json",
disabled: false,
},
{
label: t("data_explorer.step_3_raw_yaml"),
icon: "file",
tooltip: t("data_explorer.visualisation_coming_soon"),
value: "yaml",
disabled: true,
},
{
label: t("data_explorer.step_3_raw_csv"),
icon: "file",
tooltip: t("data_explorer.visualisation_coming_soon"),
value: "csv",
disabled: true,
},
{
label: t("data_explorer.step_3_raw_xml"),
icon: "file",
tooltip: t("data_explorer.visualisation_coming_soon"),
value: "xml",
disabled: true,
},
] })));
};
//# sourceMappingURL=step_3_raw.js.map