CompoundComponentFactory

fun CompoundComponentFactory(vararg keys: Any?, factory: (currentComponentFactory: ChatComponentFactory) -> ChatComponentFactory, content: @Composable () -> Unit)

A composable that allows you to create a compound ChatComponentFactory by providing a factory function that takes the current ChatComponentFactory as an argument.

This is useful for creating custom components or modifying existing ones without directly altering the original factory.

Parameters

keys

Optional keys to control recomposition. If any of the keys change, the factory function will be called again to create a new compound ChatComponentFactory.

factory

A function that takes the current ChatComponentFactory and returns a new ChatComponentFactory.

content

The composable content that will use the compound ChatComponentFactory.