-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathFeeInfo.kt
More file actions
34 lines (32 loc) · 935 Bytes
/
FeeInfo.kt
File metadata and controls
34 lines (32 loc) · 935 Bytes
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
package to.bitkit.ui.components
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.HorizontalDivider
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import to.bitkit.ui.theme.Colors
@Composable
fun RowScope.FeeInfo(
label: String,
amount: Long,
modifier: Modifier = Modifier,
) {
Column(
modifier = modifier
.fillMaxHeight()
.weight(1f)
.padding(top = 16.dp)
) {
Caption13Up(
text = label,
color = Colors.White64,
)
VerticalSpacer(8.dp)
MoneySSB(sats = amount)
FillHeight()
HorizontalDivider(modifier = Modifier.padding(top = 16.dp))
}
}