@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
21 lines • 690 B
JavaScript
import React from 'react';
import StringValue from "../String/index.js";
import useTranslation from "../../hooks/useTranslation.js";
import withComponentMarkers from "../../../../shared/helpers/withComponentMarkers.js";
import { jsx as _jsx } from "react/jsx-runtime";
function Email(props) {
var _props$label;
const translations = useTranslation().Email;
const stringProps = {
...props,
label: (_props$label = props.label) !== null && _props$label !== void 0 ? _props$label : translations.label
};
return _jsx(StringValue, {
...stringProps
});
}
withComponentMarkers(Email, {
_supportsSpacingProps: true
});
export default Email;
//# sourceMappingURL=Email.js.map