Skip to content

Commit 961ca84

Browse files
committed
chore: ReceiveTab enum
1 parent ed92a70 commit 961ca84

File tree

1 file changed

+19
-0
lines changed
  • app/src/main/java/to/bitkit/ui/screens/wallets/receive

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)