'use strict';

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

var React = require('react');
var InfoCircleFilled = require('../../../icons/InfoCircleFilled.js');
var CheckCircleFilled = require('../../../icons/CheckCircleFilled.js');
var AlertTriangle = require('../../../icons/AlertTriangle.js');
var AlertCircle = require('../../../icons/AlertCircle.js');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);

function ToastIcon({ variant, }) {
    switch (variant) {
        case 'info':
            return React__default['default'].createElement(InfoCircleFilled['default'], null);
        case 'positive':
            return React__default['default'].createElement(CheckCircleFilled['default'], null);
        case 'warning':
            return React__default['default'].createElement(AlertTriangle['default'], null);
        case 'error':
            return React__default['default'].createElement(AlertCircle['default'], null);
        default:
            return React__default['default'].createElement(React__default['default'].Fragment, null);
    }
}

exports['default'] = ToastIcon;
