$isComponentInteraction will return either true or false depending on the type of interaction.
$isComponentInteraction