UNPKG

opendash

Version:

open.DASH data visualization framework

9 lines 600 B
import * as React from "react"; import { useTranslation, useWidgetDataItem, DataItemValuePicker } from ".."; export function LinkedDataItemPicker(_a) { var style = _a.style; var t = useTranslation(["opendash"])[0]; var _b = useWidgetDataItem(), value = _b[0], dimension = _b[1], setValue = _b[2]; return (React.createElement(DataItemValuePicker, { placeholder: t("ui.select_data_item_linked"), style: style, value: value ? [value.id, dimension] : undefined, onChange: function (nextValue) { return setValue(nextValue); } })); } //# sourceMappingURL=LinkedDataItemPicker.js.map