export const getDeviceType = () => {
    var userAgent = navigator.userAgent;
    if (userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
        return 'mobile';
    } else if (userAgent.match(/Tablet|iPad/i)) {
        return 'tablet';
    } else if(window.location.href.includes('localhost') || window.location.href.includes('5173') ){
        return 'localhost'
    } else {
        return 'desktop'
    }
}