@itwin/quantity-formatting-react
Version:
React components and utilities for quantity formatting
22 lines • 792 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { Select } from "@itwin/itwinui-react";
import { useTranslation } from "../../../../useTranslation.js";
/** Component use to set Decimal Separator
* @internal
*/
export function DecimalSeparatorSelector(props) {
const { separator, onChange } = props;
const { translate } = useTranslation();
const options = [
{
value: ".",
label: translate("QuantityFormat:decimal_separator.point"),
},
{
value: ",",
label: translate("QuantityFormat:decimal_separator.comma"),
},
];
return (_jsx(Select, { options: options, value: separator, onChange: (newValue) => onChange(newValue), size: "small" }));
}
//# sourceMappingURL=DecimalSeparator.js.map