platform-bible-react
    Preparing search index...

    Function isGroupUnderColumnOrSubMenu

    • Whether a group's items render under columnOrSubMenuKey: either the group names it as its column, or the group is the one keyed by it, which is how a submenu addresses its own group.

      TabDropdownMenu picks a column's groups with this and getMenuSectionsWithItems decides which columns have something to show with it, so "this column renders nothing" can never mean two different things.

      Parameters

      • groupKey: string

        The key the group is stored under

      • group: Localized<MenuGroupDetailsInColumn | MenuGroupDetailsInSubMenu>

        The group itself

      • columnOrSubMenuKey: string

        The key of the column or submenu being rendered

      Returns boolean

      true if the group's items belong under columnOrSubMenuKey