UNPKG

@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.

30 lines (27 loc) 1.06 kB
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-sizing:border-box;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; }); // $FlowFixMe: https://github.com/flow-typed/flow-typed/issues/3653#issuecomment-568539198 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;