FPSMS-frontend
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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. }