UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

20 lines 662 B
import React from 'react'; import { CURRENCY } from "../../../../shared/defaults.js"; import NumberValue from "../Number/index.js"; import withComponentMarkers from "../../../../shared/helpers/withComponentMarkers.js"; import { jsx as _jsx } from "react/jsx-runtime"; function Currency(props) { var _props$currency; const numberProps = { ...props, currency: (_props$currency = props.currency) !== null && _props$currency !== void 0 ? _props$currency : CURRENCY }; return _jsx(NumberValue, { ...numberProps }); } withComponentMarkers(Currency, { _supportsSpacingProps: true }); export default Currency; //# sourceMappingURL=Currency.js.map