"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "MarketOverview", {
    enumerable: true,
    get: function() {
        return MarketOverview;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _marketOverview = require("../../../../../block/marketOverview");
const _hooks = require("@orderly.network/hooks");
const _provider = require("../../../../../provider");
const MarketOverview = (props)=>{
    const { symbol } = props;
    const data = (0, _hooks.useTickerStream)(symbol);
    return /*#__PURE__*/ (0, _jsxruntime.jsx)(_provider.SymbolProvider, {
        symbol: symbol,
        children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_marketOverview.SimpleMarketOverview, {
            // @ts-ignore
            change: data?.change ?? 0,
            price: data?.["24h_close"] ?? 0
        })
    });
};

//# sourceMappingURL=marketOverview.js.map