useNavigationType
declare function useNavigationType(): NavigationType; type NavigationType = "POP" | "PUSH" | "REPLACE";
此 hook 傳回當前導覽類型或使用者如何前往當前頁面;透過歷史記錄堆疊中之 pop、push 或 replace 動作。