"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "DepthSelect", {
    enumerable: true,
    get: function() {
        return DepthSelect;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _select = require("../../select");
const _react = require("react");
const DepthSelect = (props)=>{
    const options = (0, _react.useMemo)(()=>{
        return props.depth.map((d)=>({
                value: d,
                label: `${d}`
            }));
    }, [
        props.depth
    ]);
    return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
        id: "orderly-order-book-depth",
        className: "orderly-pt-2",
        children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_select.Picker, {
            options: options,
            fullWidth: true,
            size: "small",
            value: props.value,
            className: "orderly-text-4xs orderly-text-base-contrast-54",
            onValueChange: (value)=>{
                //
                props.onChange?.(value.value);
            }
        })
    });
};

//# sourceMappingURL=depthSelect.js.map