function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

import React from 'react';
import styled from 'styled-components/native';
import { Box, Icon, Text } from '../../primitives';
import { CloseButton } from '../../composites';
import { usePropsConfig } from '../../../theme';
export { CloseButton as TagCloseButton };
const StyledTag = styled(Box)({});
export const TagLabel = props => {
  return /*#__PURE__*/React.createElement(Text, props);
};
export const TagLeftIcon = props => {
  return /*#__PURE__*/React.createElement(Icon, _extends({
    mr: 2
  }, props));
};
export const TagRightIcon = props => {
  return /*#__PURE__*/React.createElement(Icon, _extends({
    ml: 2
  }, props));
};

const Tag = ({
  style,
  ...props
}) => {
  let newProps = usePropsConfig('Tag', props);
  return /*#__PURE__*/React.createElement(StyledTag, _extends({
    style: style
  }, newProps));
};

export default Tag;
//# sourceMappingURL=index.js.map