mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 17:35:16 +00:00
27 lines
1.3 KiB
JavaScript
27 lines
1.3 KiB
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
var _excluded = ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"];
|
|
import classNames from 'classnames';
|
|
import React from 'react';
|
|
import { useBootstrapPrefix } from './ThemeProvider';
|
|
var ModalDialog = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
var bsPrefix = _ref.bsPrefix,
|
|
className = _ref.className,
|
|
contentClassName = _ref.contentClassName,
|
|
centered = _ref.centered,
|
|
size = _ref.size,
|
|
children = _ref.children,
|
|
scrollable = _ref.scrollable,
|
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
|
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
var dialogClass = bsPrefix + "-dialog";
|
|
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
ref: ref,
|
|
className: classNames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
}), /*#__PURE__*/React.createElement("div", {
|
|
className: classNames(bsPrefix + "-content", contentClassName)
|
|
}, children));
|
|
});
|
|
ModalDialog.displayName = 'ModalDialog';
|
|
export default ModalDialog; |