How to know if the composer being used for editing topic,creating topic or replying a topic

I’m not sure I follow where you’re looking at the model, but the model for the composer component has an action attribute. That’s what you’re looking for.