mirror of
https://github.com/khairul169/code-share.git
synced 2025-04-28 16:49:36 +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;
|
|
};
|