Foodtruck Order — TypeScript Reference - v0.1.0
    Preparing search index...

    Interface AppPage

    The single declaration used to construct both routes and visible navigation.

    interface AppPage {
        access: PageAccess;
        developerOnly?: boolean;
        element: ReactElement;
        icon?: OverridableComponent<SvgIconTypeMap<{}, "svg">> & {};
        labelKey: TranslationKey;
        path: string;
        showInNavigation?: boolean;
    }
    Index
    access: PageAccess

    Declared visibility of the page in the registry.

    It is metadata consumed by navigation and route composition; drawer visibility is explicitly not an authorization boundary.

    developerOnly?: boolean

    Marks a page as developer-only so it is not treated as a shipped page.

    element: ReactElement

    React element rendered for this route.

    icon?: OverridableComponent<SvgIconTypeMap<{}, "svg">> & {}

    Menu icon; required for pages that appear in the navigation drawer.

    labelKey: TranslationKey

    Translation key for the page's navigation label.

    path: string

    Absolute route path; * declares the not-found fallback.

    showInNavigation?: boolean

    Whether the drawer shows a menu entry for the page (see navigationPages).