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.text.style.TextDecoration
import androidx.compose.ui.unit.sp
import com.example.wabi.ui.theme.WabiTheme

@Composable
fun AccentText(
    text: String,
    modifier: Modifier = Modifier,
    color: Color = WabiTheme.colors.mainColor,
    fontSize: Int = WabiTheme.fonts.acentFont.fontSize.value.toInt(),
    isUnderline: Boolean = false,
    textAlign: TextAlign = TextAlign.Left
) {
    Text(
        text = text,
        style = WabiTheme.fonts.acentFont,
        color = color,
        modifier = modifier,
        fontSize = fontSize.sp,
        textDecoration = if (isUnderline) TextDecoration.Underline else TextDecoration.None,
        textAlign = textAlign
    )
}