export default function getPlatform ( ) { const userAgent = window . navigator . userAgent ; return { isWin : userAgent . indexOf ( 'Windows' ) >= 0 , isMac : userAgent . indexOf ( 'Macintosh' ) >= 0 , isLinux : userAgent . indexOf ( 'Linux' ) >= 0 , } ; }