package com.peachpasswords.ui.components import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.RowScope import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.width import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.em import com.peachpasswords.ui.theme.PeachSpacing import com.peachpasswords.ui.theme.PeachType import com.peachpasswords.ui.theme.peachColors /** Quiet branded section identity used instead of the retired contained top bar. */ @Composable fun PeachSectionHeader( section: String, onHome: () -> Unit, modifier: Modifier = Modifier, actions: (@Composable RowScope.() -> Unit)? = null, ) { Row( modifier.fillMaxWidth().height(64.dp), verticalAlignment = Alignment.CenterVertically, ) { Box(Modifier.clickable(onClickLabel = "Back to vault", onClick = onHome)) { PeachWordmark() } Spacer(Modifier.width(PeachSpacing.md)) Text( section.uppercase(), color = peachColors.T2, style = PeachType.labelMono.copy(letterSpacing = 0.08.em), ) Spacer(Modifier.weight(1f)) if (actions != null) { Row( horizontalArrangement = Arrangement.spacedBy(PeachSpacing.xs), verticalAlignment = Alignment.CenterVertically, content = actions, ) } } }