/*!
 * Copyright (c) Microsoft. All rights reserved.
 * Licensed under the MIT license. See LICENSE file in the project.
 */ import { jsx as _jsx } from "react/jsx-runtime";
import { memo } from 'react';
import { getValue } from '../ArqueroDetailsList.utils.js';
import { useFormattedNumber } from '../hooks/index.js';
/**
 * Basic endering of number values.
 */ export const NumberCell = /*#__PURE__*/ memo(function NumberCell({ item , column , textAlign ='right' , numberFormat  }) {
    const value = getValue(item, column);
    const printed = useFormattedNumber(value, numberFormat);
    return /*#__PURE__*/ _jsx("div", {
        style: {
            textAlign
        },
        children: printed
    });
});
