<script>
export default {
  props: ['src', 'icon'],
  methods: {
    playSound: function (src) {
      console.log('/assets/media/' + src)
      var audioElement = document.createElement('audio')
      audioElement.setAttribute('src', '/assets/media/' + src)
      audioElement.play()
    },
  },
}
</script>

<template>
<span @click="playSound(src)" ><fa icon="play-circle" /></span>
</template>
