export const SHOW_ERROR = '§_SHOW_ERROR'
export const HIDE_ERROR = '§_HIDE_ERROR'

export const showError = ({ message, fatal, icon = 'alert', timeout = 0 }) => (dispatch) => {
  dispatch({
    type: SHOW_ERROR,
    payload: { message, fatal, icon, timeout }
  })

  if (timeout) {
    setTimeout(() => dispatch(hideError()), timeout)
  }
}

export const hideError = () => ({
  type: HIDE_ERROR,
  payload: {}
})

export const SHOW_ERROR = '§_SHOW_ERROR'
export const HIDE_ERROR = '§_HIDE_ERROR'

export const showError = ({ message, fatal, icon = 'alert' }) => ({
  type: SHOW_ERROR,
  payload: { message, fatal, icon }
})

export const hideError = () => ({
  type: HIDE_ERROR,
  payload: {}
})

--- 
+++ 
@@ -1,10 +1,16 @@
 export const SHOW_ERROR = '§_SHOW_ERROR'
 export const HIDE_ERROR = '§_HIDE_ERROR'
 
-export const showError = ({ message, fatal, icon = 'alert' }) => ({
-  type: SHOW_ERROR,
-  payload: { message, fatal, icon }
-})
+export const showError = ({ message, fatal, icon = 'alert', timeout = 0 }) => (dispatch) => {
+  dispatch({
+    type: SHOW_ERROR,
+    payload: { message, fatal, icon, timeout }
+  })
+
+  if (timeout) {
+    setTimeout(() => dispatch(hideError()), timeout)
+  }
+}
 
 export const hideError = () => ({
   type: HIDE_ERROR,
feat(Error): Add timeout for auto-closing errors
