commonMain.com.eygraber.vice.ViceSource.kt Maven / Gradle / Ivy
package com.eygraber.vice
import androidx.compose.runtime.Composable
public interface ViceSource {
@Composable
public fun currentState(): T
}
public fun ViceSource(state: @Composable () -> T): ViceSource = object : ViceSource {
@Composable
override fun currentState() = state()
}