TrustEntryEditor

fun TrustEntryEditor(trustEntryInfo: TrustEntryInfo, imageLoader: ImageLoader, newMetadata: MutableState<TrustMetadata>)

A Composable that provides a UI for editing the mutable TrustMetadata associated with a specific trust entry.

It allows the user to override the display name, toggle the "test only" flag, and select a custom display icon from the device's image picker. Modified metadata is immediately reflected in the newMetadata state.

Parameters

trustEntryInfo

The trust entry currently being edited.

imageLoader

a ImageLoader.

newMetadata

A mutable state holding the updated TrustMetadata object. Modifications made in this editor are written directly to this state.