package com.example.what_the_fantasy.ui.components

import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.sp



@Composable
fun TitlePageComponent(titleResId: Int, color: Color) {
    val title = stringResource(id = titleResId)
    Text(
        text = title,
        fontSize = 20.sp,
        fontWeight = FontWeight.Bold,
        color = color,
        textAlign = TextAlign.Center,

    )
}
