Gazebo_simulation-Frontend/node_modules/.cache/babel-loader/aa7f05f18be8021b3193cda7ad2...

1 line
1.6 KiB
JSON

{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport classNames from 'classnames';\nimport React, { useContext } from 'react';\nimport useEventCallback from '@restart/hooks/useEventCallback';\nimport { useBootstrapPrefix } from './ThemeProvider';\nimport CloseButton from './CloseButton';\nimport ToastContext from './ToastContext';\nvar defaultProps = {\n closeLabel: 'Close',\n closeButton: true\n};\nvar ToastHeader = React.forwardRef(function (_ref, ref) {\n var bsPrefix = _ref.bsPrefix,\n closeLabel = _ref.closeLabel,\n closeButton = _ref.closeButton,\n className = _ref.className,\n children = _ref.children,\n props = _objectWithoutPropertiesLoose(_ref, [\"bsPrefix\", \"closeLabel\", \"closeButton\", \"className\", \"children\"]);\n\n bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');\n var context = useContext(ToastContext);\n var handleClick = useEventCallback(function () {\n if (context) {\n context.onClose();\n }\n });\n return React.createElement(\"div\", _extends({\n ref: ref\n }, props, {\n className: classNames(bsPrefix, className)\n }), children, closeButton && React.createElement(CloseButton, {\n label: closeLabel,\n onClick: handleClick,\n className: \"ml-2 mb-1\",\n \"data-dismiss\": \"toast\"\n }));\n});\nToastHeader.displayName = 'ToastHeader';\nToastHeader.defaultProps = defaultProps;\nexport default ToastHeader;","map":null,"metadata":{},"sourceType":"module"}