shared(ui): add material-free NearbyList composable; reuse NearbyEntryRow + subtitleFor; no material deps
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package app.klottr.nearby // [NY] Delad formatterare för Nearby-vy
|
||||
package app.klottr.nearby // Delad formatterare för Nearby-vy
|
||||
|
||||
import app.klottr.util.FoundStore // För lagerkonstanter (WIKI, DM, FORNSOK, KLOTTER)
|
||||
import app.klottr.nearby.NearbyEntryShared // Vår delade radmodell
|
||||
|
||||
// Bygg undertext: "<Lager-namn> • <avstånd> m"
|
||||
fun subtitleFor(entry: NearbyEntryShared): String = buildString { // [NY]
|
||||
fun subtitleFor(entry: NearbyEntryShared): String = buildString { //
|
||||
append(
|
||||
when (entry.layer) {
|
||||
FoundStore.LAYER_WIKI -> "Wikipedia"
|
||||
|
||||
Reference in New Issue
Block a user