package com.pixelized.headache.utils.extention

import androidx.compose.ui.Modifier

fun Modifier.thenIf(condition: Boolean, block: Modifier.() -> Modifier): Modifier {
    return when (condition) {
        true -> block(this)
        else -> this
    }
}