()
| 3 | import { useState, useEffect } from 'react'; |
| 4 | |
| 5 | export function useIsMac(): boolean { |
| 6 | const [isMac, setIsMac] = useState(false); |
| 7 | |
| 8 | useEffect(() => { |
| 9 | setIsMac(/Mac OS X/.test(navigator.userAgent)); |
| 10 | }, []); |
| 11 | |
| 12 | return isMac; |
| 13 | } |
no outgoing calls
no test coverage detected