CompoundComponentFactory
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.
The factory function is called once, and again only when the current ChatComponentFactory, the factory instance, one of the keys, or Compose state read inside factory changes.
Parameters
Optional keys for values the factory function reads that Compose does not track, such as plain fields. If any of the keys change, the factory function will be called again to create a new compound ChatComponentFactory.
A function that takes the current ChatComponentFactory and returns a new ChatComponentFactory.
The composable content that will use the compound ChatComponentFactory.