@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.
26 lines (23 loc) • 840 B
JavaScript
import * as React from "react";
import styled from "styled-components";
import defaultTheme from "../../../defaultTheme";
const Wrapper = styled.div.withConfig({
displayName: "SectionFooter__Wrapper",
componentId: "sc-1aog6bk-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); // $FlowFixMe: https://github.com/flow-typed/flow-typed/issues/3653#issuecomment-568539198
Wrapper.defaultProps = {
theme: defaultTheme
};
const AccordionSectionFooter = ({
children,
dataTest
}) => /*#__PURE__*/React.createElement(Wrapper, {
"data-test": dataTest && `${dataTest}Footer`
}, children);
export default AccordionSectionFooter;