'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _propTypes = require('prop-types');

var _propTypes2 = _interopRequireDefault(_propTypes);

var _styledComponents = require('styled-components');

var _styledComponents2 = _interopRequireDefault(_styledComponents);

var _themeGet = require('../../extensions/themeGet');

var _themeGet2 = _interopRequireDefault(_themeGet);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Toast = _styledComponents2.default.div.withConfig({ displayName: 'Toast' }).withConfig({
  displayName: 'Toast'
})(['background:', ';width:400px;padding:', ';text-align:center;top:120px;border-width:', ';border-style:solid;border-color:', ';border-radius:3px;position:fixed;z-index:10000000;left:50%;transform:translateX(-50%);display:block;& p{margin:0;}'], (0, _themeGet2.default)('colors.background.default'), (0, _themeGet2.default)('spacing.small'), (0, _themeGet2.default)('thicknesses.normal'), (0, _themeGet2.default)('colors.border.medium'));

Toast.propTypes = {
  /**
   * Adds a class name to the element.
   */
  className: _propTypes2.default.string,
  /**
   * Adds an id to the element.
   */
  id: _propTypes2.default.string
};

Toast.defaultProps = {
  className: null,
  id: null
};

/**
 * @component
 */
exports.default = Toast;