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

Thanks Joe,
I was able to find the action in

component.model.action