Detect the operating system of the user.
This is custom React hooks, you need to follow the Basic Rules when you use it.
It is undetermined on the server and on the first render.
const useOs = () =>
| 'undetermined'
| 'macos'
| 'ios'
| 'windows'
| 'android'
| 'linux'
| 'chromeos'