"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.Footnote = void 0;
var _react = _interopRequireDefault(require("react"));
var _FootnoteSt = require("./Footnote.st.css.js");
var _Divider = _interopRequireDefault(require("../../../Divider"));
var _BaseModalLayoutContext = require("../../BaseModalLayoutContext");
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/BaseModalLayout/LayoutBlocks/Footnote/Footnote.tsx";
var Footnote = _ref => {
  var {
    dataHook,
    className,
    children,
    skin = 'neutral'
  } = _ref;
  var {
    footnoteClassName,
    footnote = children
  } = (0, _BaseModalLayoutContext.useBaseModalLayoutContext)();
  return footnote && /*#__PURE__*/_react.default.createElement("div", {
    "data-hook": dataHook,
    className: (0, _FootnoteSt.st)(_FootnoteSt.classes.root, {
      skin
    }, footnoteClassName, className),
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 18,
      columnNumber: 7
    }
  }, /*#__PURE__*/_react.default.createElement(_Divider.default, {
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 29,
      columnNumber: 9
    }
  }), /*#__PURE__*/_react.default.createElement("div", {
    className: _FootnoteSt.classes.innerContent,
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 30,
      columnNumber: 9
    }
  }, footnote)) || null;
};
exports.Footnote = Footnote;
Footnote.displayName = 'BaseModalLayout.Footnote';
//# sourceMappingURL=Footnote.js.map