()
| 153 | desktop: { max: Infinity, spacing: 0.3, fontSize: 0.045 } |
| 154 | }; |
| 155 | const getDevice = () => { |
| 156 | const w = window.innerWidth; |
| 157 | return w <= DEVICE.mobile.max ? 'mobile' : w <= DEVICE.tablet.max ? 'tablet' : 'desktop'; |
| 158 | }; |
| 159 | |
| 160 | const [device, setDevice] = useState(getDevice()); |
| 161 |
no outgoing calls
no test coverage detected