package app.closer.ui.pairing

import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import app.closer.core.navigation.AppRoute
import app.closer.ui.components.FinishedEmptyStateAction
import app.closer.ui.components.FinishedEmptyStateScreen
import app.closer.ui.theme.CloserPalette

@Composable
fun EmailInviteScreen(
    onNavigate: (String) -> Unit = {}
) {
    FinishedEmptyStateScreen(
        eyebrow = "Pairing",
        title = "Send an invite that is easy to follow",
        body = "Create an invite code first, then share it with your partner in the channel you both already use.",
        glyphCategoryId = "communication",
        primaryAction = FinishedEmptyStateAction("Create invite", AppRoute.CREATE_INVITE),
        secondaryAction = FinishedEmptyStateAction("Enter a code", AppRoute.ACCEPT_INVITE),
        accent = CloserPalette.PurpleDeep,
        details = listOf(
            "Use one code instead of a temporary sample invite.",
            "Keep the message short enough to send anywhere.",
            "Give your partner a single next step."
        ),
        onNavigate = onNavigate
    )
}

@Preview
@Composable
fun EmailInviteScreenPreview() {
    EmailInviteScreen()
}
