summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/View controllers/SelectLocation/LocationSection.swift
blob: 8eb264685545bb891ab29d233d2d0402d0d067e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
//  LocationSection.swift
//  MullvadVPN
//
//  Created by Mojgan on 2024-02-05.
//  Copyright © 2025 Mullvad VPN AB. All rights reserved.
//

import Foundation

enum LocationSection: String, Hashable, CaseIterable, CellIdentifierProtocol, Sendable {
    case customLists
    case allLocations

    var header: String {
        switch self {
        case .customLists:
            return NSLocalizedString("Custom lists", comment: "")
        case .allLocations:
            return NSLocalizedString("All locations", comment: "")
        }
    }

    var footer: String {
        switch self {
        case .customLists:
            return NSLocalizedString("To create a custom list, tap on \"...\" ", comment: "")
        case .allLocations:
            return NSLocalizedString("No matching relays found, check your filter settings.", comment: "")
        }
    }

    var cellClass: AnyClass {
        LocationCell.self
    }
}