UNPKG

metadata-based-explorer1

Version:
18 lines (16 loc) 515 B
import * as React from 'react'; import Tooltip from '../tooltip'; import LabelPrimitive from './LabelPrimitive'; var StandardLabel = function StandardLabel(_ref) { var children = _ref.children, labelContent = _ref.labelContent, tooltip = _ref.tooltip; var label = React.createElement(LabelPrimitive, { labelContent: labelContent }, children); return tooltip ? React.createElement(Tooltip, { position: "top-right", text: tooltip }, label) : label; }; export default StandardLabel;