isMac is a boolean from pota/use/browser, true
when the user agent contains mac. Evaluated once at module load —
prefer feature detection where you can, and reserve this for genuine
macOS-specific branches, such as showing ⌘ instead of Ctrl in keyboard
hints. Note that iOS user agents also contain mac ("like Mac OS X"),
so isMac is true on iPhone and iPad too — pair it with
isMobile when you mean desktop macOS.
Reads the boolean once and runs macOS-only code behind the guard.
import { isMac } from 'pota/use/browser'
if (isMac) {
/* ... */
}