package com.example.wabi.view.components.texts

import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.sp
import com.example.wabi.ui.theme.WabiTheme

@Composable
fun HeaderText(
    text: String,
    modifier: Modifier = Modifier,
    color: Color = WabiTheme.colors.mainColor,
    fontSize: Int = WabiTheme.fonts.headerFont.fontSize.value.toInt(),
    textAlign: TextAlign = WabiTheme.fonts.headerFont.textAlign,
    maxLines: Int = 2,
    minLines: Int = 2
) {
    Text(
        text = text,
        style = WabiTheme.fonts.headerFont,
        color = color,
        fontSize = fontSize.sp,
        modifier = modifier,
        maxLines = maxLines,
        minLines = minLines,
        textAlign = textAlign
    )
}