import { isEdge , isFirefox } from 'react-device-detect' ; import { APPLICATION_LAYOUT_MASTER_WIDTH , BrowserWindow , } from '@dark-rush-photography/best-of/types' ; export const openInBrowserWindow = ( browserWindow , url ) : string => { const openBrowserWindow = browserWindow . open ( url , '_blank' ) ; if ( openBrowserWindow ) openBrowserWindow . focus ( ) ; return url ; } ; export const findBrowserHasColorScrollbar = ( ) => ! ( isEdge || isFirefox ) ; export const findIsLargeBrowserWindow = ( windowWidth ) => { return windowWidth >= APPLICATION_LAYOUT_MASTER_WIDTH * 2 ; } ;