<template>
    <div class="alert" :class="flash.error?'alert-danger':'alert-success'">
        {{ flash.message }}
        <span class="close" @click="$emit('close')">&times;</span>
    </div>
</template>
<script>
    export default {
        props: ['flash','error'],
        data() {
            return {
            }
        }
    }
</script>