swal({ title: "Good job!", text: "You clicked the button!", icon: "success", button: "Aww yiss!" });
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
import swal from 'sweetalert';