Updated on 2026-08-14

This commit is contained in:
Tangem 2024-08-29 21:13:32 +04:00
parent 6cd6210a05
commit ab4ed3efc6
2 changed files with 44 additions and 44 deletions

View file

@ -9,6 +9,7 @@ import androidx.compose.runtime.Immutable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Shape
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.Dp
import com.tangem.core.ui.R
@ -32,12 +33,13 @@ fun InformationBlock(
title: @Composable BoxScope.() -> Unit,
modifier: Modifier = Modifier,
contentHorizontalPadding: Dp = TangemTheme.dimens.spacing12,
shape: Shape = TangemTheme.shapes.roundedCornersXMedium,
action: (@Composable BoxScope.() -> Unit)? = null,
content: (@Composable InformationBlockContentScope.() -> Unit)? = null,
) {
Column(
modifier = modifier
.clip(TangemTheme.shapes.roundedCornersXMedium)
.clip(shape)
.background(color = TangemTheme.colors.background.action),
horizontalAlignment = Alignment.Start,
) {