text: import React from 'react';
  import { Alert as Alerts} from 'react-bootstrap';
  const Alert = (props) => {
  //alert(props.message.length);
     let lbl11 =JSON.stringify(props.message);
     alert(lbl11); 
     console.log(JSON.parse(JSON.stringify(props.message)));
     let dbl=JSON.parse(JSON.stringify(props.message))
     alert(dbl);
     let  lbl1;
     let i;
     let k=0;
      for ( i in dbl) {
     if(k!==0){
        lbl1 += '<li>' + dbl[i] + '</li>';
     // alert(lbl1);
    }
    k++;
         }
  
       
          
    return (
      <>
       
        <Alerts       
          variant={props.variant} 
          style={(lbl1.length>1 )?styles1:styles}
          {...props} >
          <ul>
           {lbl1}
          </ul>
          
         </Alerts> 
         
      </>
  
    )
    
  }
  
  const styles = {
    display:'none'
  }
  const styles1 = {
   // display:'inline'
  }
  export default Alert;
  
  