text: import axios from 'axios'
  import store from '&/store'
  
  export default function ({ model, bookmarkId }) {
    this.error = null
    this.isLoading = true
  
    const profileId =
      store.state.profile.info.id
    const url =
      `profiles/${profileId}` +
      `/bookmarks/${model}s/${bookmarkId}`
  
    const { token } = store.state.profile
    const params = { token }
  
    const handleError = error => {
      this.error = error
    }
  
    const handleFinish = () => {
      this.isLoading = false
    }
  
    return axios
      .delete(url, { params })
      .catch(handleError)
      .finally(handleFinish)
  }
  