import { inject } from 'vue';
export const mediumZoomSymbol = Symbol('mediumZoom');
/**
 * Inject medium zoom instance
 */
export const useMediumZoom = () => {
    if (__VUEPRESS_SSR__) {
        return null;
    }
    const zoom = inject(mediumZoomSymbol);
    if (!zoom) {
        throw new Error('useMediumZoom() is called without provider.');
    }
    return zoom;
};
