"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "NumeralWithCtx", {
    enumerable: true,
    get: function() {
        return NumeralWithCtx;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _symbolProvider = require("../provider/symbolProvider");
const _numeral = require("./numeral");
const NumeralWithCtx = (props)=>{
    const { tick = "quote_dp", ...rest } = props;
    const symbolInfo = (0, _symbolProvider.useSymbolContext)();
    if (!symbolInfo) {
        throw new Error("NumeralWithCtx must be used inside SymbolProvider");
    }
    return /*#__PURE__*/ (0, _jsxruntime.jsx)(_numeral.Numeral, {
        ...rest,
        precision: symbolInfo[tick]
    });
};

//# sourceMappingURL=numeralWithCtx.js.map