We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed92a70 commit 961ca84Copy full SHA for 961ca84
app/src/main/java/to/bitkit/ui/screens/wallets/receive/ReceiveTab.kt
@@ -0,0 +1,19 @@
1
+package to.bitkit.ui.screens.wallets.receive
2
+
3
+import androidx.compose.runtime.Composable
4
+import androidx.compose.ui.res.stringResource
5
+import to.bitkit.R
6
7
+enum class ReceiveTab {
8
+ SAVINGS, // Pure onchain (BIP21 without Lightning)
9
+ AUTO, // Unified (BIP21 with Lightning or CJIT invoice)
10
+ SPENDING; // Pure Lightning (bolt11 or CJIT invoice)
11
12
+ val uiText: String
13
+ @Composable
14
+ get() = when (this) {
15
+ SAVINGS -> stringResource(R.string.wallet__receive_tab_savings)
16
+ AUTO -> stringResource(R.string.wallet__receive_tab_auto)
17
+ SPENDING -> stringResource(R.string.wallet__receive_tab_spending)
18
+ }
19
+}
0 commit comments