@hisptz/react-ui
Version:
A collection of reusable complex DHIS2 react ui components.
20 lines • 550 B
JavaScript
import PropTypes from "prop-types";
import React from "react";
export default function IdentifiedBy(_ref) {
let {
href,
id
} = _ref;
return /*#__PURE__*/React.createElement("div", null, "Identified by:", " ", /*#__PURE__*/React.createElement("i", null, " ", /*#__PURE__*/React.createElement("a", {
style: {
textDecoration: "none"
},
href: href + ".json",
target: "_blank",
rel: "noreferrer"
}, id), " "));
}
IdentifiedBy.PropTypes = {
id: PropTypes.string.isRequired,
href: PropTypes.string.isRequired
};