Revision control
Copy as Markdown
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
import Foundation
public struct MenuSection: Equatable, Sendable {
    public let isHorizontalTabsSection: Bool
    public let groupA11yLabel: String?
    public let isExpanded: Bool?
    public let isHomepage: Bool
    public let options: [MenuElement]
    public init(
        isHorizontalTabsSection: Bool = false,
        groupA11yLabel: String? = nil,
        isExpanded: Bool? = false,
        isHomepage: Bool = false,
        options: [MenuElement]
    ) {
        self.isHorizontalTabsSection = isHorizontalTabsSection
        self.groupA11yLabel = groupA11yLabel
        self.isExpanded = isExpanded
        self.isHomepage = isHomepage
        self.options = options
    }
}