<template>
  <div>{{ message }}</div>
</template>

<script>
export default {
  data: () => ({
    snackbar: false,
    message: null,
    options: {
      color: "primary",
      timeout: 3000
    }
  }),
  methods: {
    open(message, options) {
      this.snackbar = true;
      this.message = message;
      this.options = Object.assign(this.options, options);
    }
  }
};
</script>
