In this episode we abstract the alert function into it's own component for better re usability. We also implement the dismiss function in the alert component.