'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var styled = require('styled-components');
var index = require('../../../../utils/index.js');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);

const BottomSheetBodyWrapper = styled__default['default'].div.withConfig({
    shouldForwardProp: index.convertToTransientProps([
        'stackedActionButtons',
        'hasBodyPadding',
        'dismissAction',
        'pinnedFooter',
    ]),
}) `
  flex-grow: 1;
  ${({ hasBodyPadding }) => hasBodyPadding &&
    styled.css `
      padding: ${index.getSpacing('s04', 's03')};
    `}

  ${({ pinnedFooter, dismissAction, stackedActionButtons }) => pinnedFooter &&
    styled.css `
      --dismissActionMarBot: ${stackedActionButtons && dismissAction
        ? '60px'
        : '0px'};
      margin-bottom: calc(85px + var(--dismissActionMarBot));
    `}
`;

exports.BottomSheetBodyWrapper = BottomSheetBodyWrapper;
