import _JSXStyle from "styled-jsx/style";
// Generated with util/create-component.js
import React from "react";
import classnames from "classnames";
import useTheme from "../../hooks/useTheme";
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
export const Hidden = props => {
  const theme = useTheme();
  const {
    xs = null,
    sm = null,
    md = null,
    lg = null,
    xl = null,
    children,
    className = null,
    ...otherProps
  } = props;
  return /*#__PURE__*/_jsxs("div", {
    "data-testid": "Wps-Hidden",
    ...otherProps,
    className: _JSXStyle.dynamic([["2017533070", [xs === true ? `display: none;` : xs === false ? `display: block;` : ``, theme.breakpoints.sm.min, sm === true ? `display: none;` : sm === false ? `display: block;` : ``, theme.breakpoints.md.min, md === true ? `display: none;` : md === false ? `display: block;` : ``, theme.breakpoints.lg.min, lg === true ? `display: none;` : lg === false ? `display: block;` : ``, theme.breakpoints.xl.min, xl === true ? `display: none;` : xl === false ? `display: block;` : ``]]]) + " " + (otherProps && otherProps.className != null && otherProps.className || classnames("Wps-Hidden", className) || ""),
    children: [/*#__PURE__*/_jsx(_JSXStyle, {
      id: "2017533070",
      dynamic: [xs === true ? `display: none;` : xs === false ? `display: block;` : ``, theme.breakpoints.sm.min, sm === true ? `display: none;` : sm === false ? `display: block;` : ``, theme.breakpoints.md.min, md === true ? `display: none;` : md === false ? `display: block;` : ``, theme.breakpoints.lg.min, lg === true ? `display: none;` : lg === false ? `display: block;` : ``, theme.breakpoints.xl.min, xl === true ? `display: none;` : xl === false ? `display: block;` : ``],
      children: `.Wps-Hidden.__jsx-style-dynamic-selector{${xs === true ? `display: none;` : xs === false ? `display: block;` : ``};}@media only screen and (min-width:${theme.breakpoints.sm.min}){.Wps-Hidden.__jsx-style-dynamic-selector{${sm === true ? `display: none;` : sm === false ? `display: block;` : ``};}}@media only screen and (min-width:${theme.breakpoints.md.min}){.Wps-Hidden.__jsx-style-dynamic-selector{${md === true ? `display: none;` : md === false ? `display: block;` : ``};}}@media only screen and (min-width:${theme.breakpoints.lg.min}){.Wps-Hidden.__jsx-style-dynamic-selector{${lg === true ? `display: none;` : lg === false ? `display: block;` : ``};}}@media only screen and (min-width:${theme.breakpoints.xl.min}){.Wps-Hidden.__jsx-style-dynamic-selector{${xl === true ? `display: none;` : xl === false ? `display: block;` : ``};}}`
    }), children]
  });
};