@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.
23 lines • 765 B
JavaScript
import React from "react";
import styled from "styled-components";
import defaultTheme from "../../../defaultTheme";
const StyledWrapper = styled.div.withConfig({
displayName: "SectionFooter__StyledWrapper",
componentId: "sc-1l8vnc8-0"
})(["display:flex;padding:", ";background-color:", ";position:sticky;bottom:0;box-sizing:border-box;box-shadow:", ";"], ({
theme
}) => theme.orbit.spaceLarge, ({
theme
}) => theme.orbit.paletteWhite, ({
theme
}) => theme.orbit.boxShadowActionActive);
StyledWrapper.defaultProps = {
theme: defaultTheme
};
const AccordionSectionFooter = ({
children,
dataTest
}) => /*#__PURE__*/React.createElement(StyledWrapper, {
"data-test": dataTest && `${dataTest}Footer`
}, children);
export default AccordionSectionFooter;