@kiwicom/orbit-components
Version:
Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.
29 lines (27 loc) • 944 B
JavaScript
import * as React from "react";
import styled from "styled-components";
import defaultTheme from "../../../defaultTheme";
var Wrapper = styled.div.withConfig({
displayName: "SectionFooter__Wrapper",
componentId: "sc-1goj0o4-0"
})(["display:flex;padding:", ";background-color:", ";position:sticky;bottom:0;box-shadow:", ";"], function (_ref) {
var theme = _ref.theme;
return theme.orbit.spaceLarge;
}, function (_ref2) {
var theme = _ref2.theme;
return theme.orbit.paletteWhite;
}, function (_ref3) {
var theme = _ref3.theme;
return theme.orbit.boxShadowActionActive;
});
Wrapper.defaultProps = {
theme: defaultTheme
};
var AccordionSectionFooter = function AccordionSectionFooter(_ref4) {
var children = _ref4.children,
dataTest = _ref4.dataTest;
return /*#__PURE__*/React.createElement(Wrapper, {
"data-test": dataTest && "".concat(dataTest, "Footer")
}, children);
};
export default AccordionSectionFooter;