/* index.tsx generated by @compiled/babel-plugin v0.38.1 */
import "./index.compiled.css";
import { ax, ix } from "@compiled/react/runtime";
import React, { useCallback } from 'react';
import { Pressable } from '@atlaskit/primitives/compiled';
var styles = {
  pressable: "_c71lidpf _p12fidpf _kqswstnw"
};
export var StopPropagation = function StopPropagation(_ref) {
  var children = _ref.children;
  var onClick = useCallback(function (e) {
    // Prevent click event inside modal from bubble up
    e.stopPropagation();
  }, []);
  return /*#__PURE__*/React.createElement(Pressable, {
    xcss: styles.pressable,
    onClick: onClick
  }, children);
};