import { HooksDemos } from '@docs/demos'; import { Layout } from '@/layout'; import { MDX_DATA } from '@/mdx';
export default Layout(MDX_DATA.useOrientation);
useOrientation
returns an object with the current orientation of the device:
function useOrientation(): {
angle: number;
type: string;
};