import { PswpOptions } from '@/type' ; import { isMobile } from '@/utils' ; export const customEvents = [ 'beforeOpen' , 'opened' ] ; const _isMobile = isMobile ( ) ; export const defualtGlobalOption = { history : false , zoomEl : ! _isMobile , shareEl : ! _isMobile , shareButtons : [ { id : 'download' , label : 'Download image' , url : '{{raw_image_url}}' , download : true , } , ] , } ; export namespace GlobalOption { const _options = defualtGlobalOption ; export const get = ( ) => _options ; export const extend = ( ... partials ) => { Object . assign ( _options , ... partials ) ; } ; }