import React from "react" ; interface SuccessProps { message : string | null ; } const Sucess = ( { message } ) => { return ( < React . Fragment > { message && < div className = "success" > { message } < /div>} < /React.Fragment>); } ; export default Sucess ;