<template>
  <div>
    <p style="text-align:center">
      shake your phone
    </p>
    <shake
      :threshold="5"
      @on-shake="onShake"
    />
  </div>
</template>
<script>
import {
  Shake
} from '../components/_index'

export default {
  components: {
    Shake
  },
  methods: {
    onShake() {
      window.alert('share')
    }
  }
}
</script>
