import Message from 'element-ui/lib/message'
import 'element-ui/lib/theme-chalk/message.css'

const warn = (message) => {
  Message({
    message,
    type: 'warning'
  })
}
const success = (message) => {
  Message({
    message,
    type: 'success'
  })
}
const error = (message) => {
  Message({
    message,
    type: 'error'
  })
}

export {
  warn,
  error,
  success
}
