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 { Box } from '../../primitives';
import { usePropsConfig } from '../../../theme';
export const AlertContext = /*#__PURE__*/React.createContext({});

const Alert = ({
  children,
  ...props
}) => {
  const {
    status,
    variant,
    iconColor,
    textColor,
    ...newProps
  } = usePropsConfig('Alert', props);
  return /*#__PURE__*/React.createElement(AlertContext.Provider, {
    value: {
      status,
      variant,
      iconColor,
      textColor
    }
  }, /*#__PURE__*/React.createElement(Box, _extends({
    minW: "100%",
    maxW: "100%",
    position: "relative",
    flexDirection: "row",
    alignItems: "center",
    justifyContent: "flex-start",
    flexWrap: "wrap"
  }, newProps), children));
};

export default Alert;
//# sourceMappingURL=Alert.js.map