-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathSuggestion.kt
More file actions
79 lines (76 loc) · 2.44 KB
/
Suggestion.kt
File metadata and controls
79 lines (76 loc) · 2.44 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package to.bitkit.models
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import androidx.compose.ui.graphics.Color
import to.bitkit.R
import to.bitkit.ui.theme.Colors
enum class Suggestion(
@StringRes val title: Int,
@StringRes val description: Int,
@DrawableRes val icon: Int,
val color: Color,
val dismissible: Boolean = true,
) {
BUY(
title = R.string.cards__buyBitcoin__title,
description = R.string.cards__buyBitcoin__description,
color = Colors.Brand24,
icon = R.drawable.b_emboss,
),
LIGHTNING(
title = R.string.cards__lightning__title,
description = R.string.cards__lightning__description,
color = Colors.Purple24,
icon = R.drawable.lightning,
),
BACK_UP(
title = R.string.cards__backupSeedPhrase__title,
description = R.string.cards__backupSeedPhrase__description,
color = Colors.Blue24,
icon = R.drawable.safe,
),
SECURE(
title = R.string.cards__pin__title,
description = R.string.cards__pin__description,
color = Colors.Green24,
icon = R.drawable.shield
),
SUPPORT(
title = R.string.cards__support__title,
description = R.string.cards__support__description,
color = Colors.Yellow24,
icon = R.drawable.lightbulb
),
INVITE(
title = R.string.cards__invite__title,
description = R.string.cards__invite__description,
color = Colors.Blue24,
icon = R.drawable.group
),
PROFILE(
title = R.string.cards__slashtagsProfile__title,
description = R.string.cards__slashtagsProfile__description,
color = Colors.PubkyGreen24,
icon = R.drawable.crown,
),
SHOP(
title = R.string.cards__shop__title,
description = R.string.cards__shop__description,
color = Colors.Yellow24,
icon = R.drawable.shopping_bag
),
QUICK_PAY(
title = R.string.cards__quickpay__title,
description = R.string.cards__quickpay__description,
color = Colors.Green24,
icon = R.drawable.fast_forward
),
NOTIFICATIONS(
title = R.string.cards__notifications__title,
description = R.string.cards__notifications__description,
color = Colors.Purple24,
icon = R.drawable.bell,
dismissible = true,
),
}
fun String.toSuggestionOrNull() = Suggestion.entries.firstOrNull { it.name == this }