import { jsx as _jsx } from "react/jsx-runtime";
import { PositionShareIcon } from "../../icon";
import { cn } from "../../utils";
import { modal } from "../../modal";
import { SharePoisitionView } from "./sharePosition";
export const SharePnLIcon = (props)=>{
    return /*#__PURE__*/ _jsx(PositionShareIcon, {
        size: 12,
        className: cn("orderly-fill-white/20 hover:orderly-fill-white/80 hover:orderly-cursor-pointer orderly-inline-block", props.className),
        fill: "current",
        fillOpacity: 1,
        onClick: ()=>{
            modal.show(SharePoisitionView, {
                position: props.position
            });
        }
    });
};

//# sourceMappingURL=sharePnLIcon.js.map