FPSMS-frontend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

isFullBleedMainRoute.ts 522 B

пре 4 месеци
​
​
​
​
​
​
​
​
​
​
​
​
​
1234567891011121314
  1. import { isPoWorkbenchRoute } from "@/app/(main)/isPoWorkbenchRoute";
  2. /** MTMS route board (`/settings/shop/board`). */
  3. export function isRouteBoardRoute(pathname: string | null): boolean {
  4. if (!pathname) {
  5. return false;
  6. }
  7. return pathname === "/settings/shop/board";
  8. }
  9. /** Routes that use the full viewport under the AppBar (no main padding / min-h-screen gap). */
  10. export function isFullBleedMainRoute(pathname: string | null): boolean {
  11. return isPoWorkbenchRoute(pathname) || isRouteBoardRoute(pathname);
  12. }