mirror of
https://github.com/khairul169/code-share.git
synced 2025-04-29 00:59:37 +07:00
9 lines
185 B
TypeScript
9 lines
185 B
TypeScript
import { useScreen } from "usehooks-ts";
|
|
|
|
export const usePortrait = () => {
|
|
const screen = useScreen();
|
|
const isPortrait = screen?.width < screen?.height;
|
|
|
|
return isPortrait;
|
|
};
|