import { objectWithoutProperties as _objectWithoutProperties } from '../../../_virtual/_rollupPluginBabelHelpers.js';
import { createElement } from 'react';
import _pt from 'prop-types';

function BaseText(props) {
  var children = props.children,
      _props$as = props.as,
      Component = _props$as === void 0 ? "p" : _props$as,
      rest = _objectWithoutProperties(props, ["children", "as"]);

  return /*#__PURE__*/createElement(Component, rest, children);
}
BaseText.propTypes = {
  as: _pt.oneOf(["p", "span"])
};
BaseText.__docgenInfo = {
  "description": "",
  "methods": [],
  "displayName": "BaseText",
  "props": {
    "as": {
      "required": false,
      "tsType": {
        "name": "union",
        "raw": "\"p\" | \"span\"",
        "elements": [{
          "name": "literal",
          "value": "\"p\""
        }, {
          "name": "literal",
          "value": "\"span\""
        }]
      },
      "description": ""
    }
  }
};

if (typeof STORYBOOK_REACT_CLASSES !== "undefined") {
  STORYBOOK_REACT_CLASSES["src/components/BaseText/BaseText.tsx"] = {
    name: "BaseText",
    docgenInfo: BaseText.__docgenInfo,
    path: "src/components/BaseText/BaseText.tsx"
  };
}

export default BaseText;
//# sourceMappingURL=BaseText.esm.js.map
