@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 • 624 B
JavaScript
import * as React from "react";
import styled from "styled-components";
import defaultTheme from "../defaultTheme";
import getViewportHideStyles from "./helpers/getViewportHideStyles";
import getDisplay from "./helpers/getDisplay";
const StyledHide = styled.div.withConfig({
displayName: "Hide__StyledHide",
componentId: "sc-1ilbsf3-0"
})(["", ";"], ({
$on
}) => getViewportHideStyles($on, getDisplay));
StyledHide.defaultProps = {
theme: defaultTheme
};
const Hide = ({
on = [],
block,
children
}) => /*#__PURE__*/React.createElement(StyledHide, {
$on: on,
$block: block
}, children);
export default Hide;