extensions: Move empty paging flow function to extensions package

This is unrelated with previews

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2025-10-26 13:46:50 +08:00
parent 08f32fe093
commit 91a3aa08f9
5 changed files with 5 additions and 5 deletions

View File

@@ -0,0 +1,20 @@
/*
* SPDX-FileCopyrightText: 2025 The Calyx Institute
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package com.aurora.extensions
import androidx.compose.runtime.Composable
import androidx.paging.PagingData
import androidx.paging.compose.LazyPagingItems
import androidx.paging.compose.collectAsLazyPagingItems
import kotlinx.coroutines.flow.flowOf
/**
* Empty lazy paging item flow for optional methods
*/
@Composable
fun <T: Any> emptyPagingItems(): LazyPagingItems<T> {
return flowOf(PagingData.empty<T>()).collectAsLazyPagingItems()
}