import { UAParser } from 'ua-parser-js'; export const getDeviceOS = () => { const {os} = UAParser(navigator.userAgent); return os.name + ' ' + os.version; }