ScreenStates
constructor(loading: @Composable (StateSlot) -> Unit = { slot -> LoadingScreen(paddingValues = slot.contentPadding) }, empty: @Composable (StateSlot, Loadable.Empty) -> Unit = { slot, empty ->
NoDataScreen(
message = empty.message?.asString(),
icon = slot.icon,
showRetry = slot.onRetry != null,
onRetry = { slot.onRetry?.invoke() },
showAd = slot.showAd,
paddingValues = slot.contentPadding,
)
}, failed: @Composable (StateSlot, Loadable.Failed) -> Unit = { slot, failed ->
NoDataScreen(
message = failed.message.asString(),
icon = slot.icon,
isError = true,
showRetry = slot.onRetry != null,
onRetry = { slot.onRetry?.invoke() },
showAd = slot.showAd,
paddingValues = slot.contentPadding,
)
}, transition: ContentTransform? = null)(source)