How to make automatic change of camera position from Static mesh?

You’re trying to connect an actor to a node that takes a component:

image