import { formatHref } from '@inside-library/helpers/Langs'

export const triggerProcedureLink = (vm, { slug, contentType }) => {
  vm.$store.commit('setCurrentModalContentType', contentType)

  vm.$router.push(
    formatHref(
      {
        name: 'ProcedureModal',
        params: {
          slug
        }
      },
      vm.$_currentLang
    )
  )
}
