src/FlashMessage.js
function parseIcon(icon = "none") {
  if (!!icon && icon !== "none") {
    if (typeof icon === "string") {
      return { icon, position: "left", style: {} };
    }

    return { position: "left", style: {}, ...icon };
  }

  return null;
}
function parseIcon(icon = "none") {
  if (!!icon && icon !== "none") {
    if (typeof icon === "string") {
      return { icon, position: "left", style: {} };
    }

    return { position: "left", style: {}, ...icon };
  }

  return null;
}
function parseIcon ( icon = "none" ) { if ( ! ! icon && icon !== "none" ) { if ( typeof icon === "string" ) { return { icon , position : "left" , style : { } } ; } return { position : "left" , style : { } , ... icon } ; } return null ; }
Translates icon prop value into complex internal object
Translates icon prop value into complex internal object