Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
import { useNuxtApp } from "#imports"
/**
* This wrapper around the plugin, retained to reduce code churn.
* @see Refer to frontend/src/plugins/03.analytics.ts for plugin implementation
*
* @deprecated For new code, use `$sendCustomEvent` from Nuxt context
*/
export const useAnalytics = () => {
const { $sendCustomEvent } = useNuxtApp()
return { sendCustomEvent: $sendCustomEvent }
}