package cl.homelogic.platform.designsystem.components.atoms

import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.MaterialTheme.typography
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.TextStyle
import cl.homelogic.platform.designsystem.foundations.Symbols

@Composable
fun SymbolText(
    icon: Symbols? = null,
    rawIcon: String = "",
    style: TextStyle = typography.displaySmall,
    color: Color = MaterialTheme.colorScheme.primary,
    modifier: Modifier = Modifier,
) {
    Text(
        modifier = modifier,
        text = icon?.codePoint ?: rawIcon,
        color = color,
        style = style,
    )
}
